From ee4e245f167f0e5a859a03b06568c282d11b52d2 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Sun, 24 Apr 2016 20:20:07 +0300 Subject: Fix line length calculation --- swaybar/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaybar/render.c') diff --git a/swaybar/render.c b/swaybar/render.c index 833198fd..b9ef2242 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -278,7 +278,7 @@ void render(struct output *output, struct config *config, struct status_line *li int width, height; if (line->protocol == TEXT) { - get_text_size(window->cairo, window->font, &width, &height, true, "%s", line->text_line); + get_text_size(window->cairo, window->font, &width, &height, config->plaintext_markup, "%s", line->text_line); cairo_move_to(cairo, window->width - margin - width, margin); pango_printf(window->cairo, window->font, config->plaintext_markup, "%s", line->text_line); } else if (line->protocol == I3BAR && line->block_line) { -- cgit v1.2.3-54-g00ecf