Huw Davies <huw@xxxxxxxxxxxxxxx> 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. -- Huw Davies huw@xxxxxxxxxxxxxxx Index: controls/edit.c =================================================================== RCS file: /home/wine/wine/controls/edit.c,v retrieving revision 1.123 diff -u -r1.123 edit.c --- controls/edit.c 3 Nov 2003 22:15:59 -0000 1.123 +++ controls/edit.c 10 Nov 2003 15:22:13 -0000 @@ -2981,18 +2981,19 @@ 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) {