Fix line length calculation

This commit is contained in:
Mykyta Holubakha 2016-04-24 20:20:07 +03:00
parent 2e6c43e62b
commit ee4e245f16

View File

@ -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) {