From 26fdca8f4d8add1bd86f94f46e3a21e1435c5252 Mon Sep 17 00:00:00 2001 From: noctuum <25441068+noctuum@users.noreply.github.com> Date: Wed, 16 Sep 2026 11:31:29 +0500 Subject: [PATCH] Use empty_visible in the view focus movers empty() counts filtered entries, so size() - 1 underflows. --- src/core/view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/view.cc b/src/core/view.cc index b5093867..a67d4c6c 100644 --- a/src/core/view.cc +++ b/src/core/view.cc @@ -216,7 +216,7 @@ View::set_not_visible(Download* download) { void View::next_focus(unsigned int i) { - if (empty()) + if (empty_visible()) return; // If at the boundary, roll over @@ -239,7 +239,7 @@ View::next_focus(unsigned int i) { void View::prev_focus(unsigned int i) { - if (empty()) + if (empty_visible()) return; // If at the boundary, roll over