aboutsummaryrefslogtreecommitdiff
path: root/src/view.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/view.zig')
-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;