Merge pull request #2587 from RyanDwyer/fix-layout-toggle-crash

Fix crash when running "layout toggle"
master
Brian Ashworth 6 years ago committed by GitHub
commit 63567f5ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@ static enum sway_container_layout get_layout_toggle(int argc, char **argv,
enum sway_container_layout layout, enum sway_container_layout layout,
enum sway_container_layout prev_split_layout) { enum sway_container_layout prev_split_layout) {
// "layout toggle" // "layout toggle"
if (argc == 0) { if (argc == 1) {
return layout == L_HORIZ ? L_VERT : L_HORIZ; return layout == L_HORIZ ? L_VERT : L_HORIZ;
} }

Loading…
Cancel
Save