diff options
author | lbonn <bonnans.l@gmail.com> | 2017-10-06 14:37:35 +0200 |
---|---|---|
committer | lbonn <bonnans.l@gmail.com> | 2017-10-06 14:37:35 +0200 |
commit | a7e1a0eea9325238be938c0a812413f4121e2eaa (patch) | |
tree | 4850489604dd7c55716044c8210dbeea1b7bb10f | |
parent | Fix move to named workspaces (diff) | |
download | sway-a7e1a0eea9325238be938c0a812413f4121e2eaa.tar.gz sway-a7e1a0eea9325238be938c0a812413f4121e2eaa.tar.zst sway-a7e1a0eea9325238be938c0a812413f4121e2eaa.zip |
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.
-rw-r--r-- | sway/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
61 | // workspace n | 61 | // workspace n |
62 | char *cmd = argsep(&cmdlist, " "); | 62 | char *cmd = argsep(&cmdlist, " "); |
63 | if (cmdlist) { | 63 | if (cmdlist) { |
64 | name = argsep(&cmdlist, " ,;"); | 64 | name = argsep(&cmdlist, ",;"); |
65 | } | 65 | } |
66 | 66 | ||
67 | if (strcmp("workspace", cmd) == 0 && name) { | 67 | if (strcmp("workspace", cmd) == 0 && name) { |