From c3a2f251a2d22505adb91284aecab293db407206 Mon Sep 17 00:00:00 2001 From: Ammar Najjar Date: Sun, 24 Jul 2016 20:34:33 +0200 Subject: [PATCH] Fix #146: Colors key has no effect. The original mantainer did not add the patch, so I had to fork it and apply the patch myself. the patch is mentioned already in issue#146: https://github.com/vivien/i3blocks/issues/146 --- src/block.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/block.c b/src/block.c index 7a72c0c0..792a06e3 100644 --- a/src/block.c +++ b/src/block.c @@ -163,7 +163,8 @@ block_update_plain_text(struct block *block, char *buf) return; linecpy(&lines, props->short_text, sizeof(props->short_text) - 1); - linecpy(&lines, props->color, sizeof(props->color) - 1); + if (*lines) + linecpy(&lines, props->color, sizeof(props->color) - 1); } static void