aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-03-22 10:13:36 +0000
committernyamatongwe <devnull@localhost>2003-03-22 10:13:36 +0000
commitb2684ec9cbc58990121d859fd4aa3e9ba105c71f (patch)
tree64a67ed96d05af204f3cc390ccc37d70e2908e09 /src
parent015c7f1f95ea539122efae2c7471301af38247df (diff)
downloadscintilla-mirror-b2684ec9cbc58990121d859fd4aa3e9ba105c71f.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();
}
}