From 379835b63409bbb1f2cea5717e3cb7841bd9f703 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Sat, 5 Jul 2008 04:23:47 -0400 Subject: [PATCH] richedit: Made sure word selection selects only one word. --- dlls/riched20/caret.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index 4a1a8a43603..4a79e482016 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); } -- 2.11.4.GIT