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:
Carl Worth 2009-11-12 20:12:16 -08:00
parent 523f1ce0a5
commit e4a7c2b870

View file

@ -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);