diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index 2c1c9b98c82..4b5fed11098 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -1263,7 +1263,10 @@ void ME_EnsureVisible(ME_TextEditor *editor, ME_Cursor *pCursor) x = editor->horz_si.nPos; if (~editor->styleFlags & ES_AUTOVSCROLL) + { ME_HScrollAbs(editor, x); + return; + } } else { if (~editor->styleFlags & ES_AUTOVSCROLL) return;