diff options
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r-- | sway/commands/move.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index 09a47652..ceeab07c 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -923,11 +923,17 @@ struct cmd_results *cmd_move(int argc, char **argv) { if (strcasecmp(argv[0], "window") == 0 || strcasecmp(argv[0], "container") == 0) { - --argc; ++argv; + --argc; + if (argc > 0) { + ++argv; + } } if (strcasecmp(argv[0], "to") == 0) { - --argc; ++argv; + --argc; + if (argc > 0) { + ++argv; + } } if (!argc) { |