Skip to content

Commit

Permalink
Patch Scintilla to update scroll position after `view:vertical_center…
Browse files Browse the repository at this point in the history
…_caret()`.

Patch was submitted upstream.
  • Loading branch information
orbitalquark committed Jan 8, 2023
1 parent 34e1656 commit ee11929
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/scintilla.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Scintilla changes:
* Handle incoming XPM images as a single string on Qt.
* Use Qt macros instead of keywords in header.
* Enable Qt mouse wheel events even if scroll bars are hidden.
* Update scroll position after VerticalCentreCaret(). Patch submitted upstream.

diff -r 52d56f79dc0f gtk/ScintillaGTK.cxx
--- a/gtk/ScintillaGTK.cxx Fri Apr 09 15:11:26 2021 +1000
Expand Down Expand Up @@ -137,3 +138,14 @@ diff -r 123ae5de5bd2 qt/ScintillaEditBase/ScintillaEditBase.cpp
event->ignore();
} else {
// Scroll
diff -r 123ae5de5bd2 src/Editor.cxx
--- a/src/Editor.cxx Sat Aug 27 08:02:08 2022 +1000
+++ b/src/Editor.cxx Sun Jan 08 09:48:02 2023 -0500
@@ -1013,6 +1013,7 @@
if (topLine != newTop) {
SetTopLine(newTop > 0 ? newTop : 0);
RedrawRect(GetClientRectangle());
+ SetVerticalScrollPos();
}
}

0 comments on commit ee11929

Please sign in to comment.