From a7e1a0eea9325238be938c0a812413f4121e2eaa Mon Sep 17 00:00:00 2001 From: lbonn Date: Fri, 6 Oct 2017 14:37:35 +0200 Subject: [PATCH] Make `workspace_next_name` work with spaces `workspace_next_name` parses workspace commands to find the default workspace names. It handled " " as a separator, which prevents the use of workspace names with spaces. --- sway/workspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/workspace.c b/sway/workspace.c index 29cacce9..e0367190 100644 --- a/sway/workspace.c +++ b/sway/workspace.c @@ -61,7 +61,7 @@ char *workspace_next_name(const char *output_name) { // workspace n char *cmd = argsep(&cmdlist, " "); if (cmdlist) { - name = argsep(&cmdlist, " ,;"); + name = argsep(&cmdlist, ",;"); } if (strcmp("workspace", cmd) == 0 && name) {