diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-05 09:34:10 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-05 10:27:13 +0000 |
commit | 3dcb03ef3ec06ad0f0335973df405ec8d041abee (patch) | |
tree | 9c7a8faaaa4678de98dbbdd786ef817be5005544 /lib/PublicInbox/SearchView.pm | |
parent | e194adb858f2fdb220aa43f3ce398ff9e77cc1d3 (diff) | |
download | public-inbox-3dcb03ef3ec06ad0f0335973df405ec8d041abee.tar.gz |
$mset->size is probably more obvious than relying on a tied array and saves us a line.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 3 |
1 files changed, 1 insertions, 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 = '</pre><hr><pre id=t>'; if ($beg <= $end) { |