aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-02-22 00:50:51 +0000
committernyamatongwe <devnull@localhost>2007-02-22 00:50:51 +0000
commitf4fb7ec9f9e59ebd05b32f6db4f9d18734db7e06 (patch)
tree125526f6896310c411ea206af250a0c5a7470800 /src
parent65f10023815421d5560f7817a79126ffab72a2c1 (diff)
downloadscintilla-mirror-f4fb7ec9f9e59ebd05b32f6db4f9d18734db7e06.tar.gz
Avoid reentrant painting when scroll is performed in a
notification by queueing a redraw.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
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();