mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Merge pull request #425 from mikkeloscar/bar-strip-ws-num
Only strip when starting with a num
This commit is contained in:
commit
22592505b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue