Handle maxnum=0 the same way as in mu server.
This commit is contained in:
@ -132,7 +132,7 @@ run_query (MuQuery *xapian, const gchar *query, MuConfig *opts, GError **err)
|
||||
if (opts->threads)
|
||||
qflags |= MU_QUERY_FLAG_THREADS;
|
||||
|
||||
iter = mu_query_run (xapian, query, sortid, -1, qflags, err);
|
||||
iter = mu_query_run (xapian, query, sortid, opts->maxnum, qflags, err);
|
||||
return iter;
|
||||
}
|
||||
|
||||
@ -598,7 +598,7 @@ output_query_results (MuMsgIter *iter, MuConfig *opts, GError **err)
|
||||
|
||||
MuMsg *msg;
|
||||
|
||||
if (opts->maxnum > 0 && count == opts->maxnum)
|
||||
if (count == opts->maxnum)
|
||||
break;
|
||||
msg = get_message (iter, opts->after);
|
||||
if (!msg)
|
||||
|
||||
Reference in New Issue
Block a user