mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
notmuch search: Fix a second bug in the change to support incremental searches.
The search was dropping the first thread from the results. When am I going to break down and write a test suite? It's long overdue now.
This commit is contained in:
parent
523f1ce0a5
commit
e4a7c2b870
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ notmuch_query_search_threads (notmuch_query_t *query,
|
||||||
thread_id, NULL,
|
thread_id, NULL,
|
||||||
(void **) &thread))
|
(void **) &thread))
|
||||||
{
|
{
|
||||||
if (threads_seen > first) {
|
if (threads_seen >= first) {
|
||||||
thread = _notmuch_thread_create (query, query->notmuch,
|
thread = _notmuch_thread_create (query, query->notmuch,
|
||||||
thread_id);
|
thread_id);
|
||||||
g_ptr_array_add (threads->threads, thread);
|
g_ptr_array_add (threads->threads, thread);
|
||||||
|
|
Loading…
Reference in a new issue