From ad5ca5e7635bc0ac8b7c7c85df4e41317434a1d0 Mon Sep 17 00:00:00 2001 From: Vasiliy Faronov Date: Mon, 24 Apr 2017 18:27:42 +0300 Subject: [PATCH] git-changebar: Fix spurious line wrapping Fixes #567. --- git-changebar/src/gcb-plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/git-changebar/src/gcb-plugin.c b/git-changebar/src/gcb-plugin.c index 5f29ced7e..b3cc8a103 100644 --- a/git-changebar/src/gcb-plugin.c +++ b/git-changebar/src/gcb-plugin.c @@ -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);