diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-28 14:20:53 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-03-28 14:20:53 +0100 |
| commit | d7d5cf06ee838354b65373aefdbf6cc2130505b5 (patch) | |
| tree | a0713e6927d82524e936f40b1266529e1ec6583b /src | |
| parent | a523d0ce7cc2649379d4d4125f0617f27853b265 (diff) | |
| download | river-d7d5cf06ee838354b65373aefdbf6cc2130505b5.tar.gz river-d7d5cf06ee838354b65373aefdbf6cc2130505b5.tar.xz | |
Focus previous view on close instead of next
Diffstat (limited to 'src')
| -rw-r--r-- | src/view.zig | 4 |
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; |
