Dylan Smith : richedit: Made sure word selection selects only one word.
Alexandre Julliard
julliard at winehq.org
Mon Jul 7 09:19:23 CDT 2008
Module: wine
Branch: master
Commit: 379835b63409bbb1f2cea5717e3cb7841bd9f703
URL: http://source.winehq.org/git/wine.git/?a=commit;h=379835b63409bbb1f2cea5717e3cb7841bd9f703
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Sat Jul 5 04:23:47 2008 -0400
richedit: Made sure word selection selects only one word.
---
dlls/riched20/caret.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 4a1a8a4..4a79e48 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);
}
More information about the wine-cvs
mailing list