diff options
author | Eric Wong <e@80x24.org> | 2021-03-05 04:03:05 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-05 07:20:29 +0000 |
commit | 7d72d2814e6703bdf411f55ed0461eeb214b7e89 (patch) | |
tree | 2123868fc29e7140a5ba53d822d4b16103502330 /lib/PublicInbox/LeiXSearch.pm | |
parent | 7d186c6fa885c7b04c9e2a65b3fc501120b7866f (diff) | |
download | public-inbox-7d72d2814e6703bdf411f55ed0461eeb214b7e89.tar.gz |
We only want to set `flagged' if a user requests it via a two '-t' switches. Fixes: 232f8e376fe2856c ("lei q: -tt marks direct hits as flagged")
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r-- | lib/PublicInbox/LeiXSearch.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 3270b420..f2c8c02e 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -148,7 +148,7 @@ sub query_thread_mset { # for --threads my $mset; my $each_smsg = $lei->{ovv}->ovv_each_smsg_cb($lei, $ibxish); my $can_kw = !!$ibxish->can('msg_keywords'); - my $fl = $lei->{opt}->{threads} > 1; + my $fl = $lei->{opt}->{threads} > 1 ? [ 'flagged' ] : undef; do { $mset = $srch->mset($mo->{qstr}, $mo); mset_progress($lei, $desc, $mset->size, @@ -165,8 +165,8 @@ sub query_thread_mset { # for --threads if ($mitem) { if ($can_kw) { mitem_kw($smsg, $mitem, $fl); - } else { - $smsg->{kw} = [ 'flagged' ]; + } elsif ($fl) { + $smsg->{kw} = $fl; } } $each_smsg->($smsg, $mitem); |