aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-07-08 09:32:43 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-07-08 09:32:43 -0400
commitb98dec9a17beefa8d5ef8cb9fa244093eca2f134 (patch)
tree242f83171d1aba8e2c0d01e6ee9f0d74bb610d08
parent838070f8dd25a53a2f39e0f75df7349c82a9252a (diff)
downloadtextadept-b98dec9a17beefa8d5ef8cb9fa244093eca2f134.tar.gz
textadept-b98dec9a17beefa8d5ef8cb9fa244093eca2f134.zip
Ensure split view is drawn by GTK before scrolling it; src/textadept.c
This prevents any disorienting scrolling.
-rw-r--r--src/textadept.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 644af3f3..1cb5bff1 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1883,6 +1883,7 @@ static void split_view(Scintilla *view, int vertical) {
g_object_unref(view);
focus_view(view2);
+ while (gtk_events_pending()) gtk_main_iteration();
SS(view2, SCI_SETSEL, anchor, current_pos);
int new_first_line = SS(view2, SCI_GETFIRSTVISIBLELINE, 0, 0);
SS(view2, SCI_LINESCROLL, first_line - new_first_line, 0);