diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2017-10-06 14:37:35 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2017-10-06 14:37:35 +0200 |
| commit | fc3817f284753147e632ad2da09d61de6316ff06 (patch) | |
| tree | 4850489604dd7c55716044c8210dbeea1b7bb10f | |
| parent | 05730eb8b880b7c1166db7db2269089e306923fe (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.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) { // workspace n char *cmd = argsep(&cmdlist, " "); if (cmdlist) { - name = argsep(&cmdlist, " ,;"); + name = argsep(&cmdlist, ",;"); } if (strcmp("workspace", cmd) == 0 && name) { |
