aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-03-28 14:20:53 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-03-28 14:20:53 +0100
commitd7d5cf06ee838354b65373aefdbf6cc2130505b5 (patch)
treea0713e6927d82524e936f40b1266529e1ec6583b
parenta523d0ce7cc2649379d4d4125f0617f27853b265 (diff)
downloadriver-d7d5cf06ee838354b65373aefdbf6cc2130505b5.tar.gz
river-d7d5cf06ee838354b65373aefdbf6cc2130505b5.tar.xz
Focus previous view on close instead of next
-rw-r--r--src/view.zig4
1 files 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;