aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-12-03 23:14:04 +0000
committernyamatongwe <unknown>2004-12-03 23:14:04 +0000
commit639c57612568acae901f268f45b4ac1c3e8cbff2 (patch)
treeb00c6a12ff5733c205aa607c94521374b3511ac6 /src/Editor.cxx
parent8ddd9226d19199363ed00801adf7f95b43fd32b6 (diff)
downloadscintilla-mirror-639c57612568acae901f268f45b4ac1c3e8cbff2.tar.gz
Patch from Regis Vaquette to allow compilation for Windows CE.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 399e65976..fbb0b694c 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1065,11 +1065,15 @@ void Editor::ScrollTo(int line, bool moveThumb) {
SetTopLine(topLineNew);
ShowCaretAtCurrentPosition();
// Perform redraw rather than scroll if many lines would be redrawn anyway.
+#ifndef UNDER_CE
if (abs(linesToMove) <= 10) {
ScrollText(linesToMove);
} else {
Redraw();
}
+#else
+ Redraw();
+#endif
if (moveThumb) {
SetVerticalScrollPos();
}