summaryrefslogtreecommitdiffstats
path: root/sway/commands/split.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/split.c')
-rw-r--r--sway/commands/split.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/split.c b/sway/commands/split.c
index 6df20e88..fe4013e9 100644
--- a/sway/commands/split.c
+++ b/sway/commands/split.c
@@ -76,6 +76,7 @@ struct cmd_results *cmd_split(int argc, char **argv) {
76 strcasecmp(argv[0], "toggle") == 0) { 76 strcasecmp(argv[0], "toggle") == 0) {
77 struct sway_container *focused = 77 struct sway_container *focused =
78 config->handler_context.current_container; 78 config->handler_context.current_container;
79
79 if (focused->parent->layout == L_VERT) { 80 if (focused->parent->layout == L_VERT) {
80 _do_split(argc - 1, argv + 1, L_HORIZ); 81 _do_split(argc - 1, argv + 1, L_HORIZ);
81 } else { 82 } else {