diff options
-rw-r--r-- | sway/commands.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index f6326038..fc3444ee 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -169,7 +169,10 @@ static struct cmd_results *cmd_assign(int argc, char **argv) { | |||
169 | 169 | ||
170 | char *criteria = *argv++; | 170 | char *criteria = *argv++; |
171 | 171 | ||
172 | if (strncmp(*argv, "→", 1) == 0) { | 172 | if (strncmp(*argv, "→", strlen("→")) == 0) { |
173 | if (argc < 3) { | ||
174 | return cmd_results_new(CMD_INVALID, "assign", "Missing workspace"); | ||
175 | } | ||
173 | argv++; | 176 | argv++; |
174 | } | 177 | } |
175 | 178 | ||