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.
This commit is contained in:
lbonn 2017-10-06 14:37:35 +02:00
parent 6197fff0b4
commit a7e1a0eea9

View file

@ -61,7 +61,7 @@ char *workspace_next_name(const char *output_name) {
// workspace n // workspace n
char *cmd = argsep(&cmdlist, " "); char *cmd = argsep(&cmdlist, " ");
if (cmdlist) { if (cmdlist) {
name = argsep(&cmdlist, " ,;"); name = argsep(&cmdlist, ",;");
} }
if (strcmp("workspace", cmd) == 0 && name) { if (strcmp("workspace", cmd) == 0 && name) {