aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlbonn <bonnans.l@gmail.com>2017-10-06 14:37:35 +0200
committerlbonn <bonnans.l@gmail.com>2017-10-06 14:37:35 +0200
commita7e1a0eea9325238be938c0a812413f4121e2eaa (patch)
tree4850489604dd7c55716044c8210dbeea1b7bb10f
parent6197fff0b4b6783362f2e2673fdc0827c5948a4a (diff)
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.c2
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) {
// workspace n
char *cmd = argsep(&cmdlist, " ");
if (cmdlist) {
- name = argsep(&cmdlist, " ,;");
+ name = argsep(&cmdlist, ",;");
}
if (strcmp("workspace", cmd) == 0 && name) {