]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
searchview: clarify that only pct% links are same page
authorEric Wong <e@80x24.org>
Wed, 31 May 2023 09:14:45 +0000 (09:14 +0000)
committerEric Wong <e@80x24.org>
Wed, 31 May 2023 23:22:30 +0000 (23:22 +0000)
Non-matching messages in the skeleton aren't rendered on
the same page.

lib/PublicInbox/SearchView.pm

index 10a1ce40d511be6e78385de4f0cc7f4905334bdf..8f8517387b339f4dee8cde9eb7f4a295a52b6150 100644 (file)
@@ -302,9 +302,9 @@ sub mset_thread {
        my $rootset = PublicInbox::SearchThread::thread($msgs,
                $r ? \&sort_relevance : \&PublicInbox::View::sort_ds,
                $ctx);
-       my $skel = search_nav_bot($ctx, $mset, $q).
-               "<pre>-- links below jump to the message on this page --\n";
-
+       my $skel = search_nav_bot($ctx, $mset, $q).'<pre>'. <<EOM;
+-- pct% links below jump to the message on this page, permalinks otherwise --
+EOM
        $ctx->{-upfx} = '';
        $ctx->{anchor_idx} = 1;
        $ctx->{cur_level} = 0;