change default layout toggle to L_HORIZ

After issuing 'layout toggle split' command from tabbed/stacked layout,
layout should have been horizontally split.
This commit is contained in:
D.B 2016-11-06 08:13:24 +01:00
parent e9ac0492b7
commit 05be14ff7c

View File

@ -49,10 +49,10 @@ struct cmd_results *cmd_layout(int argc, char **argv) {
} else if (strcasecmp(argv[0], "splitv") == 0) { } else if (strcasecmp(argv[0], "splitv") == 0) {
parent->layout = L_VERT; parent->layout = L_VERT;
} else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) { } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) {
if (parent->layout == L_VERT) { if (parent->layout == L_HORIZ) {
parent->layout = L_HORIZ;
} else {
parent->layout = L_VERT; parent->layout = L_VERT;
} else {
parent->layout = L_HORIZ;
} }
} }
} }