richedit: Made sure word selection selects only one word.
This commit is contained in:
parent
9be8f36c2e
commit
379835b634
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue