sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c2f3530fab9c96318e0a1e4b21e02e54792d5900
parent ccdcdc339679284887778ec1eff548afdc4c5511
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date:   Sun,  3 Jan 2016 17:48:47 +0100

Only strip when starting with a num

This makes sure the `:` isn't striped if you have a workspace named:
`:something`.

Diffstat:
Mswaybar/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swaybar/main.c b/swaybar/main.c @@ -580,7 +580,7 @@ char *handle_workspace_number(bool strip_num, const char *ws_name) { int len = strlen(ws_name); for (i = 0; i < len; ++i) { if (!('0' <= ws_name[i] && ws_name[i] <= '9')) { - if (':' == ws_name[i] && i < len-1) { + if (':' == ws_name[i] && i < len-1 && i > 0) { strip = true; ++i; }