commit a7e1a0eea9325238be938c0a812413f4121e2eaa
parent 6197fff0b4b6783362f2e2673fdc0827c5948a4a
Author: lbonn <bonnans.l@gmail.com>
Date: Fri, 6 Oct 2017 14:37:35 +0200
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {