aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-04-13 00:18:48 +0000
committernyamatongwe <devnull@localhost>2003-04-13 00:18:48 +0000
commit8c0bf328e0bd620ea38a4ca9eebcb19db16a56f2 (patch)
treece5af35eb0ba1b723f07d3613e446a3519cc4dc0 /src/Editor.cxx
parent8c1c3e97c6401c371e824056e4f71a99e19da86c (diff)
downloadscintilla-mirror-8c0bf328e0bd620ea38a4ca9eebcb19db16a56f2.tar.gz
Avoid resetting scroll bars when changing documents as that leads to
synchronous painting on GTK+ before completely set up for new document.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index b126c8904..44399a5fb 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4872,7 +4872,10 @@ void Editor::SetDocPointer(Document *document) {
pdoc->AddWatcher(this, 0);
Redraw();
- SetScrollBars();
+ // Removed because of reentrance problems of GTK+ 2.x
+ // where changing a scroll bar position causes synchronous
+ // painting before lexer and styling state is set up.
+ //SetScrollBars();
}
// Recursively expand a fold, making lines visible except where they have an unexpanded parent