Branch: refs/heads/master Author: Vasiliy Faronov vfaronov@gmail.com Committer: Vasiliy Faronov vfaronov@gmail.com Date: Mon, 24 Apr 2017 15:27:42 UTC Commit: ad5ca5e7635bc0ac8b7c7c85df4e41317434a1d0 https://github.com/geany/geany-plugins/commit/ad5ca5e7635bc0ac8b7c7c85df4e41...
Log Message: ----------- git-changebar: Fix spurious line wrapping
Fixes #567.
Modified Paths: -------------- git-changebar/src/gcb-plugin.c
Modified: git-changebar/src/gcb-plugin.c 5 lines changed, 4 insertions(+), 1 deletions(-) =================================================================== @@ -802,8 +802,11 @@ get_widget_for_buf_range (GeanyDocument *doc, break; } } + /* We need 2 extra pixels of width: + * 1 to avoid cropping the rightmost vertical bar of letters like H and M, + * 1 to avoid spurious line wrapping (issue #425). */ gtk_widget_set_size_request (GTK_WIDGET (sci), - MIN (width + 1, alloc.width), + MIN (width + 2, alloc.width), MIN (height + 1, alloc.height));
return GTK_WIDGET (sci);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).