Skip to content

Commit

Permalink
Merge pull request #564 from vfaronov/git-changebar-line-wrap
Browse files Browse the repository at this point in the history
git-changebar: Fix spurious line wrapping
  • Loading branch information
b4n committed Apr 30, 2017
2 parents 62d9962 + ad5ca5e commit 09df15c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-changebar/src/gcb-plugin.c
Expand Up @@ -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);
Expand Down

0 comments on commit 09df15c

Please sign in to comment.