Skip to content

Commit

Permalink
Merge pull request #1280 from techee/changebar_fix
Browse files Browse the repository at this point in the history
git-changebar: Re-set first visible line after Scintilla size request
  • Loading branch information
b4n authored Oct 13, 2023
2 parents abb1294 + 9ad218b commit 74202cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-changebar/src/gcb-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@ 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_SETFIRSTVISIBLELINE, line_start, 0);

return GTK_WIDGET (sci);
}

Expand Down

0 comments on commit 74202cd

Please sign in to comment.