aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-03-22 10:13:36 +0000
committernyamatongwe <unknown>2003-03-22 10:13:36 +0000
commit15b64660b6a2bf8033a992901f8e6a7edbdf9570 (patch)
tree64a67ed96d05af204f3cc390ccc37d70e2908e09 /src
parent94cfff4709d753b520921fdcafe9fb9cd78cdf69 (diff)
downloadscintilla-mirror-15b64660b6a2bf8033a992901f8e6a7edbdf9570.tar.gz
Moved invalidation code around a bit to try to optimize on GTK+ 2.x.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 07db2404f..ae096d50f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -901,9 +901,9 @@ int Editor::MovePositionTo(int newPos, bool extend, bool ensureVisible) {
} else {
SetEmptySelection(newPos);
}
+ ShowCaretAtCurrentPosition();
if (ensureVisible)
EnsureCaretVisible();
- ShowCaretAtCurrentPosition();
NotifyMove(newPos);
return 0;
}
@@ -1149,9 +1149,9 @@ void Editor::EnsureCaretVisible(bool useMargin, bool vert, bool horiz) {
}
newTopLine = Platform::Clamp(newTopLine, 0, MaxScrollPos());
if (newTopLine != topLine) {
+ Redraw();
SetTopLine(newTopLine);
SetVerticalScrollPos();
- Redraw();
}
}