diff --git a/git-changebar/src/gcb-plugin.c b/git-changebar/src/gcb-plugin.c index dd2f9c19f..26337d6cc 100644 --- a/git-changebar/src/gcb-plugin.c +++ b/git-changebar/src/gcb-plugin.c @@ -878,6 +878,10 @@ get_widget_for_buf_range (GeanyDocument *doc, MIN (width + 2, alloc.width), MIN (height + 1, alloc.height)); + /* Size request seems to scroll Scintilla view so we have to re-set visible lines again */ + scintilla_send_message (sci, SCI_SETENDATLASTLINE, 0, 0); + scintilla_send_message (sci, SCI_SETFIRSTVISIBLELINE, line_start, 0); + return GTK_WIDGET (sci); }