mirror of
https://github.com/swaywm/sway.git
synced 2026-03-18 05:34:20 -04:00
Strip quotes from workspace name.
Fix #444 This is a temporary fix, the real fix is to store the commands as a formatted argv array, so they don't have to be reformatted all over the place.
This commit is contained in:
parent
46992d6060
commit
222f0d44fc
2 changed files with 7 additions and 2 deletions
|
|
@ -50,6 +50,7 @@ char *workspace_next_name(void) {
|
|||
if (strcmp("workspace", cmd) == 0 && name) {
|
||||
sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", name);
|
||||
char *_target = strdup(name);
|
||||
strip_quotes(_target);
|
||||
while (isspace(*_target))
|
||||
_target++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue