X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-search.c;h=c628b369b66fadd975821261b4169e91c78ac3ca;hp=bb989dac854bc7f12f4207c5a4eaa237d1401309;hb=fb4ded1cc9de716b0e8d8b6dacce2417a9c421cb;hpb=44ea57a0d10ddab514abea319c4d25ec4e36b51e diff --git a/notmuch-search.c b/notmuch-search.c index bb989dac..c628b369 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -319,7 +319,9 @@ do_search_tags (const void *ctx, { tag = notmuch_tags_get (tags); - if (! first_tag) + if (first_tag) + fputs (format->results_start, stdout); + else fputs (format->item_sep, stdout); format->item_id (ctx, "", tag); @@ -332,6 +334,9 @@ do_search_tags (const void *ctx, if (messages) notmuch_messages_destroy (messages); + if (! first_tag) + fputs (format->results_end, stdout); + return 0; }