diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index ebf6c56..ea5d679 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -746,9 +746,9 @@ ME_MoveCursorWords(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs) void ME_SelectWord(ME_TextEditor *editor) { - if (!(editor->pCursors[0].pRun->member.run.nFlags & MERF_ENDPARA)) - ME_MoveCursorWords(editor, &editor->pCursors[0], -1); ME_MoveCursorWords(editor, &editor->pCursors[1], +1); + editor->pCursors[0] = editor->pCursors[1]; + ME_MoveCursorWords(editor, &editor->pCursors[0], -1); ME_InvalidateSelection(editor); ME_SendSelChange(editor); }