Commit e364a440 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Added missing return to ME_EnsureVisible.

The missing return was to prevent automatic vertically scrolling when style for it is not set, but is set for the horizontal scrollbar. I initially missed this by testing with no autoscrolling on either scrollbar.
parent 1eca313f
......@@ -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;
......
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