about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-07 08:51:56 +0000
committerEric Wong <e@80x24.org>2021-02-07 22:57:15 +0000
commit5beb4a5f6585acdb036a10b2be4b45b6e7613ed6 (patch)
tree9ebfe1b08024f5681f2b2b0d1d26ea2ecae2a1f5 /lib/PublicInbox/Search.pm
parentc1ea28b62d19bb7c77a275497899382df344eb52 (diff)
downloadpublic-inbox-5beb4a5f6585acdb036a10b2be4b45b6e7613ed6.tar.gz
Nobody is expected to use long options, but for consistency
with mairix(1), we'll use the pluralized option throughout
(including existing PublicInbox::{Search,SearchView}).

Link: https://public-inbox.org/meta/20210206090119.GA14519@dcvr/
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 7c6a16be..dbae3bc5 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -336,7 +336,7 @@ sub _enquire_once { # retry_reopen callback
         }
 
         # `mairix -t / --threads' or JMAP collapseThreads
-        if ($opts->{thread} && has_threadid($self)) {
+        if ($opts->{threads} && has_threadid($self)) {
                 $enquire->set_collapse_key(THREADID);
         }
         $enquire->get_mset($opts->{offset} || 0, $opts->{limit} || 50);