]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: show result count in thread index, for now
authorEric Wong <e@80x24.org>
Thu, 30 Jun 2016 10:34:00 +0000 (10:34 +0000)
committerEric Wong <e@80x24.org>
Thu, 30 Jun 2016 10:34:00 +0000 (10:34 +0000)
I'm not sure what to show here, actually; but it's better
than triggering an uninitialized variable warning.

lib/PublicInbox/SearchView.pm

index 30a310c9f58ceede52857d3b07d23668eaedcf6b..d019a0f1431d50cb0bbbec8501d55b8bba4a2f29 100644 (file)
@@ -176,6 +176,7 @@ sub mset_thread {
        $ctx->{prev_attr} = '';
        $ctx->{prev_level} = 0;
        $ctx->{seen} = {};
+       $ctx->{s_nr} = scalar(@m).'+ results';
 
        PublicInbox::View::walk_thread($th, $ctx,
                *PublicInbox::View::pre_thread);