aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/query.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-12 20:12:16 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-12 20:12:16 -0800
commite4a7c2b8703280e93b205965d7df1b7dda8a0bf7 (patch)
tree2237c69e40a671a67ce5dc6b57bf36f10d99304e /lib/query.cc
parent523f1ce0a5e1cbe62dc9b879f224d6b60631322f (diff)
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.
Diffstat (limited to 'lib/query.cc')
-rw-r--r--lib/query.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/query.cc b/lib/query.cc
index 2169709c..4b4c80f4 100644
--- a/lib/query.cc
+++ b/lib/query.cc
@@ -218,7 +218,7 @@ notmuch_query_search_threads (notmuch_query_t *query,
thread_id, NULL,
(void **) &thread))
{
- if (threads_seen > first) {
+ if (threads_seen >= first) {
thread = _notmuch_thread_create (query, query->notmuch,
thread_id);
g_ptr_array_add (threads->threads, thread);