diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index 252d6f2c..7fcb5543 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -3347,6 +3347,7 @@ void ScintillaEditView::scrollPosToCenter(size_t pos) middleLine = lastVisibleDocLine - nbLine/2; int nbLines2scroll = line - middleLine; scroll(0, nbLines2scroll); + execute(SCI_ENSUREVISIBLEENFORCEPOLICY, line); } void ScintillaEditView::hideLines()