aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-07-08 09:33:49 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-07-08 09:33:49 -0400
commitbda4a0b0c97107df86f68ce47f93949bae101065 (patch)
treedc5ee68eefb4f795c1a963fae100035811cfeb94
parentb98dec9a17beefa8d5ef8cb9fa244093eca2f134 (diff)
downloadtextadept-bda4a0b0c97107df86f68ce47f93949bae101065.tar.gz
textadept-bda4a0b0c97107df86f68ce47f93949bae101065.zip
Ensure split view is painted by GTK before scrolling it; src/textadept.c
This prevents any disorienting scrolling.
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 1cb5bff1..ede35e19 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1883,7 +1883,7 @@ static void split_view(Scintilla *view, int vertical) {
g_object_unref(view);
focus_view(view2);
- while (gtk_events_pending()) gtk_main_iteration();
+ while (gtk_events_pending()) gtk_main_iteration(); // ensure view2 is painted
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);