From b98dec9a17beefa8d5ef8cb9fa244093eca2f134 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 8 Jul 2013 09:32:43 -0400 Subject: Ensure split view is drawn by GTK before scrolling it; src/textadept.c This prevents any disorienting scrolling. --- src/textadept.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3