lib/PublicInbox/View.pm | 6 ++++-- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 22d725009366b79e596f11da1752c6ab648a9eee..fac53eb9650ec986ca0300ce42b1be2d9e5bb11f 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -156,7 +156,7 @@ $threaded = "$threaded"; } $rv .= " / [$flat"; $rv .= "|$threaded]"; - $rv .= " / thread overview"; + $rv .= " / $ctx->{s_nr}"; } $rv .= $more ? "\n\n" : "\n"; @@ -226,7 +226,8 @@ } elsif (my $nn = $next->next) { $rv .= $pad . $mapping->{$nn->messageid}->[1]; } } - $rv .= "_ $s_s, $s_c\n"; + $rv .= "_ "; + $rv .= "$s_s, $s_c; $ctx->{s_nr}\n"; } sub walk_thread { @@ -319,6 +320,7 @@ $ctx->{prev_level} = 0; $ctx->{root_anchor} = anchor_for($mid); $ctx->{seen} = {}; $ctx->{mapping} = {}; + $ctx->{s_nr} = "$nr+ messages in thread"; my $th = thread_results($msgs); walk_thread($th, $ctx, *pre_thread);