summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 5cb661eb..842142e2 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -285,9 +285,9 @@ static bool cmd_split(struct sway_config *config, int argc, char **argv) {
285 return false; 285 return false;
286 } 286 }
287 if (strcasecmp(argv[0], "v") == 0 || strcasecmp(argv[0], "vertical") == 0) { 287 if (strcasecmp(argv[0], "v") == 0 || strcasecmp(argv[0], "vertical") == 0) {
288 _do_split(config, argc, argv, L_VERT); 288 _do_split(config, argc - 1, argv + 1, L_VERT);
289 } else if (strcasecmp(argv[0], "h") == 0 || strcasecmp(argv[0], "horizontal") == 0) { 289 } else if (strcasecmp(argv[0], "h") == 0 || strcasecmp(argv[0], "horizontal") == 0) {
290 _do_split(config, argc, argv, L_HORIZ); 290 _do_split(config, argc - 1, argv + 1, L_HORIZ);
291 } else { 291 } else {
292 sway_log(L_ERROR, "Invalid split command (expected either horiziontal or vertical)."); 292 sway_log(L_ERROR, "Invalid split command (expected either horiziontal or vertical).");
293 return false; 293 return false;