From bc9ee2dd45e7654c5c1d6c2b4b3791df20962a95 Mon Sep 17 00:00:00 2001 From: Mitchell Foral Date: Tue, 17 Jan 2023 16:06:46 +1100 Subject: Fix SCI_VERTICALCENTRECARET to update the vertical scroll position. --- src/Editor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 9620cc216..273d6db2a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1010,6 +1010,7 @@ void Editor::VerticalCentreCaret() { const Sci::Line newTop = lineDisplay - (LinesOnScreen() / 2); if (topLine != newTop) { SetTopLine(newTop > 0 ? newTop : 0); + SetVerticalScrollPos(); RedrawRect(GetClientRectangle()); } } -- cgit v1.2.3