riched20: Reset selection when text is reset.
This commit is contained in:
parent
c50fbab47f
commit
0f55ef3bef
|
@ -1471,6 +1471,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
|
|||
TRACE("WM_SETTEXT - NULL\n");
|
||||
ME_CommitUndo(editor);
|
||||
ME_EmptyUndoStack(editor);
|
||||
ME_SetSelection(editor, 0, 0);
|
||||
ME_UpdateRepaint(editor);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue