From: Sebastian Ullrich Date: Mon, 20 Aug 2012 10:36:10 +0000 (+0200) Subject: Create ws in "move workspace number n" if not existing X-Git-Tag: 4.3~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb853660cfe31bb15d481b925e53f925f2385cea;p=i3%2Fi3 Create ws in "move workspace number n" if not existing fixes #729 --- diff --git a/src/commands.c b/src/commands.c index 9830478f..8875b8d2 100644 --- a/src/commands.c +++ b/src/commands.c @@ -486,14 +486,7 @@ void cmd_move_con_to_workspace_number(I3_CMD, char *which) { child->num == parsed_num); if (!workspace) { - y(map_open); - ystr("success"); - y(bool, false); - ystr("error"); - // TODO: better error message - ystr("No such workspace"); - y(map_close); - return; + workspace = workspace_get(which, NULL); } HANDLE_EMPTY_MATCH;