diff options
author | Carl Worth <cworth@cworth.org> | 2010-11-23 17:58:00 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-23 17:58:00 -0800 |
commit | fb4ded1cc9de716b0e8d8b6dacce2417a9c421cb (patch) | |
tree | 55b0881363ce2102b888720955ea6d6b874de4d2 /notmuch-search.c | |
parent | 9e0d00f37ee963ec03e61f1847f7e7c53a90d2b8 (diff) |
notmuch search: Fix missing final newline in "notmuch search --output=tags"
As mentioned in the recent test commits, this also fixes the missing
'[' and ']' characters in the --format=json variant of "notmuch search
--output=tags" as well.
Diffstat (limited to 'notmuch-search.c')
-rw-r--r-- | notmuch-search.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |