mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-08 17:51:42 +01:00
notmuch search: Fix to actually return something.
This serves me right for committing untested code. The notmuch_query_search_threads was totally broken, (it didn't properly treat -1 as being unlimited and instead returned no threads in that case).
This commit is contained in:
parent
93dcc3b695
commit
523f1ce0a5
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ notmuch_query_search_threads (notmuch_query_t *query,
|
||||||
seen = g_hash_table_new_full (g_str_hash, g_str_equal,
|
seen = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||||
free, NULL);
|
free, NULL);
|
||||||
|
|
||||||
while (threads_seen < first + max_threads)
|
while (max_threads < 0 || threads_seen < first + max_threads)
|
||||||
{
|
{
|
||||||
int messages_seen_previously = messages_seen;
|
int messages_seen_previously = messages_seen;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue