aboutsummaryrefslogtreecommitdiffstats
path: root/dwmblocks.c
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-16 13:16:50 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-16 13:16:50 +0200
commit23b73dba045b314d549bf5916c85225d79dc6906 (patch)
tree42f99a1964522168f58bb19e471793f5d922dbe6 /dwmblocks.c
parentupdate (diff)
downloaddwmblocks-23b73dba045b314d549bf5916c85225d79dc6906.tar.gz
dwmblocks-23b73dba045b314d549bf5916c85225d79dc6906.tar.bz2
dwmblocks-23b73dba045b314d549bf5916c85225d79dc6906.tar.xz
dwmblocks-23b73dba045b314d549bf5916c85225d79dc6906.tar.zst
dwmblocks-23b73dba045b314d549bf5916c85225d79dc6906.zip
wip
Diffstat (limited to 'dwmblocks.c')
-rw-r--r--dwmblocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index 773e36f..5d7f6cd 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -115,7 +115,7 @@ void getcmd(const Block *block, char *output)
strlcpy(output + i, tmpstr, CMDLENGTH);
remove_all(output, '\n');
i = strlen(output);
- if (i > 0){
+ if (i > 0 && block != &blocks[LENGTH(blocks) - 1]){
strcat(output, postdelim);
}
i += strlen(postdelim);