richedit: Made sure word selection selects only one word.

This commit is contained in:
Dylan Smith 2008-07-05 04:23:47 -04:00 committed by Alexandre Julliard
parent 9be8f36c2e
commit 379835b634
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}