aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-12-03 23:14:04 +0000
committernyamatongwe <devnull@localhost>2004-12-03 23:14:04 +0000
commit860e52f3760e59e262145b029d0a3cdf814c745c (patch)
treeb00c6a12ff5733c205aa607c94521374b3511ac6 /src/Editor.cxx
parenta9ffc36995207d728b8e8c3096303caa479de54a (diff)
downloadscintilla-mirror-860e52f3760e59e262145b029d0a3cdf814c745c.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();
}