diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/query.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/query.cc b/lib/query.cc index 1777e47d..2169709c 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -200,7 +200,7 @@ notmuch_query_search_threads (notmuch_query_t *query, seen = g_hash_table_new_full (g_str_hash, g_str_equal, free, NULL); - while (threads_seen < first + max_threads) + while (max_threads < 0 || threads_seen < first + max_threads) { int messages_seen_previously = messages_seen; |