diff options
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 3070530cc..3396b4245 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1125,7 +1125,7 @@ void Editor::ScrollTo(int line, bool moveThumb) { ShowCaretAtCurrentPosition(); // Perform redraw rather than scroll if many lines would be redrawn anyway. #ifndef UNDER_CE - if (abs(linesToMove) <= 10) { + if ((abs(linesToMove) <= 10) && (paintState == notPainting)) { ScrollText(linesToMove); } else { Redraw(); |