diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2025-05-05 16:44:55 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2025-05-05 16:44:55 +1000 |
commit | 81f3d22db1581d3ddffd9c4b434e3dd7d2a51cbe (patch) | |
tree | 36247bd2111b5ca9bad51cbffc57c82483f179a1 /gtk/ScintillaGTK.cxx | |
parent | f853a1db0e9bf7afa93e806fd5df7ae35a624b9a (diff) | |
download | scintilla-mirror-81f3d22db1581d3ddffd9c4b434e3dd7d2a51cbe.tar.gz |
Bug [#2416]. Reset vertical scroll bar synchronously in SCI_SETDOCPOINTER to fix
bug where scroll position not restored in non-wrap mode.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rwxr-xr-x | gtk/ScintillaGTK.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index d1cce0fbd..9c9e36c1a 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -3097,6 +3097,8 @@ void ScintillaGTK::SetDocPointer(Document *document) { Editor::SetDocPointer(document); + ChangeScrollBars(); + if (sciAccessible) { // the accessible needs have the old Document, but also the new one active sciAccessible->ChangeDocument(oldDoc, pdoc); |