aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 4c5ab8f41..92b0f0057 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -880,7 +880,7 @@ void Editor::SetLastXChosen() {
lastXChosen = pt.x;
}
-void Editor::ScrollTo(int line) {
+void Editor::ScrollTo(int line, bool moveThumb) {
int topLineNew = Platform::Clamp(line, 0, MaxScrollPos());
if (topLineNew != topLine) {
// Try to optimise small scrolls
@@ -893,7 +893,9 @@ void Editor::ScrollTo(int line) {
} else {
Redraw();
}
- SetVerticalScrollPos();
+ if (moveThumb) {
+ SetVerticalScrollPos();
+ }
}
}