aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/move.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r--sway/commands/move.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index f2702fa1..1a05a7a6 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -874,6 +874,10 @@ static struct cmd_results *cmd_move_to_position(int argc, char **argv) {
874 return cmd_results_new(CMD_INVALID, "Invalid x position specified"); 874 return cmd_results_new(CMD_INVALID, "Invalid x position specified");
875 } 875 }
876 876
877 if (argc < 1) {
878 return cmd_results_new(CMD_FAILURE, expected_position_syntax);
879 }
880
877 struct movement_amount ly = { .amount = 0, .unit = MOVEMENT_UNIT_INVALID }; 881 struct movement_amount ly = { .amount = 0, .unit = MOVEMENT_UNIT_INVALID };
878 // Y direction 882 // Y direction
879 num_consumed_args = parse_movement_amount(argc, argv, &ly); 883 num_consumed_args = parse_movement_amount(argc, argv, &ly);