edit: reposition caret after window resize
Lauri Tulmin
lauri_ at ut.ee
Tue Jan 18 17:59:14 CST 2005
resizing edit control may change text layout, so caret might end up in
wrong place
changelog:
reposition caret after window resize
-------------- next part --------------
Index: dlls/user/edit.c
===================================================================
RCS file: /home/wine/wine/dlls/user/edit.c,v
retrieving revision 1.12
diff -u -p -r1.12 edit.c
--- dlls/user/edit.c 17 Jan 2005 19:31:48 -0000 1.12
+++ dlls/user/edit.c 18 Jan 2005 23:25:22 -0000
@@ -2250,6 +2253,8 @@ static void EDIT_SetRectNP(EDITSTATE *es
if ((es->style & ES_MULTILINE) && !(es->style & ES_AUTOHSCROLL))
EDIT_BuildLineDefs_ML(es, 0, strlenW(es->text), 0, NULL);
+
+ EDIT_SetCaretPos(es, es->selection_end, es->flags & EF_AFTER_WRAP);
}
More information about the wine-patches
mailing list