Reposition caret after window resize.

This commit is contained in:
Lauri Tulmin 2005-01-19 20:53:38 +00:00 committed by Alexandre Julliard
parent 4f02b52c6b
commit 78e76cf977
1 changed files with 2 additions and 0 deletions

View File

@ -2250,6 +2250,8 @@ static void EDIT_SetRectNP(EDITSTATE *es, LPRECT rc)
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);
}