[geany/geany-plugins] 09df15: Merge pull request #564 from vfaronov/git-changebar-line-wrap
Colomban Wendling
git-noreply at xxxxx
Sun Apr 30 14:37:48 UTC 2017
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sun, 30 Apr 2017 14:37:48 UTC
Commit: 09df15ca18612cc9f463d3270a762502ce3aa0ff
https://github.com/geany/geany-plugins/commit/09df15ca18612cc9f463d3270a762502ce3aa0ff
Log Message:
-----------
Merge pull request #564 from vfaronov/git-changebar-line-wrap
git-changebar: Fix spurious line wrapping
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).
More information about the Plugins-Commits
mailing list