aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMitchell Foral <unknown>2023-01-17 16:06:46 +1100
committerMitchell Foral <unknown>2023-01-17 16:06:46 +1100
commitbc9ee2dd45e7654c5c1d6c2b4b3791df20962a95 (patch)
tree612c5b6e9d79c25f15a9daca421b280df2b6ce7f /src
parentc568c1a2ea16e9990c7352991c9d02bfa72302b1 (diff)
downloadscintilla-mirror-bc9ee2dd45e7654c5c1d6c2b4b3791df20962a95.tar.gz
Fix SCI_VERTICALCENTRECARET to update the vertical scroll position.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
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());
}
}