From edfc16af9a108c4d9193694fb8c37aa5c1afc0b0 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 8 Sep 2014 12:07:59 +0200 Subject: [PATCH] Strip trailing padding with urgent_collapse --- spectrwm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spectrwm.c b/spectrwm.c index 03c6259..de42566 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -2227,6 +2227,8 @@ bar_urgent(char *s, size_t sz) strlcat(s, "- ", sz); } } + if(urgent_collapse && s[0]) + s[strlen(s) - 1] = 0; } void -- 2.39.2