]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly assign a number to workspaces starting with '0: ' (Thanks SardemFF7)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Aug 2011 16:17:02 +0000 (18:17 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Aug 2011 16:17:02 +0000 (18:17 +0200)
src/workspace.c

index c71fa5112f55ad9fa5760990b1f2c8eec8f79e61..963fa64bb5e994c2c2112925f54611e189fe9dcf 100644 (file)
@@ -53,7 +53,7 @@ Con *workspace_get(const char *num, bool *created) {
         long parsed_num = strtol(num, NULL, 10);
         if (parsed_num == LONG_MIN ||
             parsed_num == LONG_MAX ||
-            parsed_num <= 0)
+            parsed_num < 0)
             workspace->num = -1;
         else workspace->num = parsed_num;
         LOG("num = %d\n", workspace->num);