From 59289d47cba1dbd078ad2bb5df0be74fa7c958b5 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 6 Nov 2016 16:08:47 +0100 Subject: Added margins between columns only after non-empty columns. --- ChangeLog | 5 +++++ src/glibext/gbufferline.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 243a41a..577579c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 16-11-06 Cyrille Bagard + * src/glibext/gbufferline.c: + Add margins between columns only after non-empty columns. + +16-11-06 Cyrille Bagard + * src/glibext/linesegment.c: Handle tabulations as small separation paddings. diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c index 34f1ac0..5f1756d 100644 --- a/src/glibext/gbufferline.c +++ b/src/glibext/gbufferline.c @@ -1469,7 +1469,10 @@ void g_buffer_line_draw(GBufferLine *line, cairo_t *cairo, const line_width_summ { max_width = g_buffer_line_compute_max_width(line, i, summary); - x += max_width + COL_MARGIN; + x += max_width; + + if (max_width > 0) + x += COL_MARGIN; } -- cgit v0.11.2-87-g4458