From: Michael Stapelberg Date: Sun, 28 Aug 2011 16:17:02 +0000 (+0200) Subject: Bugfix: Correctly assign a number to workspaces starting with '0: ' (Thanks SardemFF7) X-Git-Tag: 4.1~176^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dfda878272a40bb9ed5d1d7af53b6a4fcbebe223;p=i3%2Fi3 Bugfix: Correctly assign a number to workspaces starting with '0: ' (Thanks SardemFF7) --- diff --git a/src/workspace.c b/src/workspace.c index c71fa511..963fa64b 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -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);