aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textadept.c')
-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);