sway

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

commit 22592505b1c27df641d25d9e3c4e155eb71a6109
parent f828065a54444ff6999fad43f7f69a573329aeb4
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun,  3 Jan 2016 11:50:34 -0500

Merge pull request #425 from mikkeloscar/bar-strip-ws-num

Only strip when starting with a num
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; }