Commit 379835b6 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Made sure word selection selects only one word.

parent 9be8f36c
...@@ -746,9 +746,9 @@ ME_MoveCursorWords(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs) ...@@ -746,9 +746,9 @@ ME_MoveCursorWords(ME_TextEditor *editor, ME_Cursor *cursor, int nRelOfs)
void void
ME_SelectWord(ME_TextEditor *editor) 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); ME_MoveCursorWords(editor, &editor->pCursors[1], +1);
editor->pCursors[0] = editor->pCursors[1];
ME_MoveCursorWords(editor, &editor->pCursors[0], -1);
ME_InvalidateSelection(editor); ME_InvalidateSelection(editor);
ME_SendSelChange(editor); ME_SendSelChange(editor);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment