diff options
-rw-r--r-- | sway/workspace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/workspace.c b/sway/workspace.c index e0367190..42525f3d 100644 --- a/sway/workspace.c +++ b/sway/workspace.c | |||
@@ -68,8 +68,9 @@ char *workspace_next_name(const char *output_name) { | |||
68 | sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", name); | 68 | sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", name); |
69 | char *_target = strdup(name); | 69 | char *_target = strdup(name); |
70 | strip_quotes(_target); | 70 | strip_quotes(_target); |
71 | while (isspace(*_target)) | 71 | while (isspace(*_target)) { |
72 | _target++; | 72 | memmove(_target, _target+1, strlen(_target+1)); |
73 | } | ||
73 | 74 | ||
74 | // Make sure that the command references an actual workspace | 75 | // Make sure that the command references an actual workspace |
75 | // not a command about workspaces | 76 | // not a command about workspaces |