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