]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchView.pm
view: improve readability around walk_thread
[public-inbox.git] / lib / PublicInbox / SearchView.pm
index 0d2e71fda534d4819ae23813516d4df9b74f7c45..94a55b8d8a3b1a3cbac5b2b569c2f90160c7de88 100644 (file)
@@ -277,7 +277,7 @@ sub mset_thread {
        $ctx->{-upfx} = '';
        $ctx->{anchor_idx} = 1;
        $ctx->{cur_level} = 0;
-       $ctx->{dst} = \$skel;
+       $ctx->{skel} = \$skel;
        $ctx->{mapping} = {};
        $ctx->{searchview} = 1;
        $ctx->{prev_attr} = '';
@@ -287,7 +287,7 @@ sub mset_thread {
        # reduce hash lookups in skel_dump
        $ctx->{-obfuscate} = $ctx->{-inbox}->{obfuscate};
        PublicInbox::View::walk_thread($rootset, $ctx,
-               *PublicInbox::View::pre_thread);
+               \&PublicInbox::View::pre_thread);
 
        @$msgs = reverse @$msgs if $r;
        $ctx->{msgs} = $msgs;
@@ -303,7 +303,7 @@ sub mset_thread_i {
                return PublicInbox::View::index_entry($smsg, $ctx,
                                                        scalar @$msgs);
        }
-       my ($skel) = delete @$ctx{qw(dst msgs)};
+       my ($skel) = delete @$ctx{qw(skel msgs)};
        $$skel .= "\n</pre>";
 }