diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/glibext/gbufferline.c | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,10 @@ 16-11-06 Cyrille Bagard <nocbos@gmail.com> + * src/glibext/gbufferline.c: + Add margins between columns only after non-empty columns. + +16-11-06 Cyrille Bagard <nocbos@gmail.com> + * 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; } |