From 3dcb03ef3ec06ad0f0335973df405ec8d041abee Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Thu, 5 Apr 2018 09:34:10 +0000 Subject: [PATCH] searchview: minor cleanup $mset->size is probably more obvious than relying on a tied array and saves us a line. --- lib/PublicInbox/SearchView.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index c7897958..d038dfca 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -180,9 +180,8 @@ sub search_nav_top { sub search_nav_bot { my ($mset, $q) = @_; my $total = $mset->get_matches_estimated; - my $nr = scalar $mset->items; my $o = $q->{o}; - my $end = $o + $nr; + my $end = $o + $mset->size; my $beg = $o + 1; my $rv = '
';
 	if ($beg <= $end) {
-- 
2.44.0