Commit 4c7b65db authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

We need to invalidate the replaced text region before calling

EM_ScrollCaret as this may call ScrollWindow. Previously newly added lines were not displayed if the edit needed to scroll.
parent f11b022f
......@@ -2981,18 +2981,19 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac
EDIT_EM_SetSel(es, s, s, FALSE);
es->flags |= EF_MODIFIED;
if (send_update) es->flags |= EF_UPDATE;
EDIT_EM_ScrollCaret(es);
/* force scroll info update */
EDIT_UpdateScrollInfo(es);
if (hrgn)
{
EDIT_UpdateTextRegion(es, hrgn, TRUE);
DeleteObject(hrgn);
}
else
EDIT_UpdateText(es, NULL, TRUE);
EDIT_UpdateText(es, NULL, TRUE);
EDIT_EM_ScrollCaret(es);
/* force scroll info update */
EDIT_UpdateScrollInfo(es);
if(es->flags & EF_UPDATE)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment