winemac: Reposition cursor for IME composition.

It is more natural for the cursor to be at the end of the selection
being composed instead of being at the beginning.
This commit is contained in:
Aric Stewart 2014-05-23 08:04:36 -05:00 committed by Alexandre Julliard
parent d3d4e3a9a9
commit 20daa8b61c

View file

@ -431,7 +431,7 @@ - (void) setMarkedText:(id)string selectedRange:(NSRange)selectedRange replaceme
event->im_set_text.data = [window imeData];
event->im_set_text.text = (CFStringRef)[[markedText string] copy];
event->im_set_text.complete = FALSE;
event->im_set_text.cursor_pos = markedTextSelection.location;
event->im_set_text.cursor_pos = markedTextSelection.location + markedTextSelection.length;
[[window queue] postEvent:event];