From d7d5cf06ee838354b65373aefdbf6cc2130505b5 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 28 Mar 2020 14:20:53 +0100 Subject: [PATCH] Focus previous view on close instead of next --- src/view.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.zig b/src/view.zig index 6b412d7..f34f015 100644 --- a/src/view.zig +++ b/src/view.zig @@ -124,8 +124,8 @@ pub const View = struct { if (current_focus == view) { // If there are more views if (root.views.len > 1) { - // Focus the next view. - root.focusNextView(); + // Focus the previous view. + root.focusPrevView(); } else { // Otherwise clear the focus root.focused_view = null;