mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-13 12:46:18 +00:00
Use empty_visible in the view focus movers
empty() counts filtered entries, so size() - 1 underflows.
This commit is contained in:
+2
-2
@@ -216,7 +216,7 @@ View::set_not_visible(Download* download) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
View::next_focus(unsigned int i) {
|
View::next_focus(unsigned int i) {
|
||||||
if (empty())
|
if (empty_visible())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If at the boundary, roll over
|
// If at the boundary, roll over
|
||||||
@@ -239,7 +239,7 @@ View::next_focus(unsigned int i) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
View::prev_focus(unsigned int i) {
|
View::prev_focus(unsigned int i) {
|
||||||
if (empty())
|
if (empty_visible())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If at the boundary, roll over
|
// If at the boundary, roll over
|
||||||
|
|||||||
Reference in New Issue
Block a user