From 4cf3587ec9e6014b0eabc8a3a63e502c0298912d Mon Sep 17 00:00:00 2001
From: Eric Wong <e@80x24.org>
Date: Fri, 1 Jul 2016 00:20:20 +0000
Subject: [PATCH] searchview: add missing newline in search results

Hrm... is there a more obvious way to do an internal API for
this while still being streamable?
---
 lib/PublicInbox/SearchView.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index d019a0f1..ce1eff1e 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -191,7 +191,8 @@ sub mset_thread {
 		}
 		if ($mime) {
 			$mime = Email::MIME->new($mime);
-			return PublicInbox::View::index_entry($mime, $ctx);
+			return PublicInbox::View::index_entry($mime, $ctx,
+				scalar @$msgs);
 		}
 		$msgs = undef;
 		$skel .= "\n</pre>";
-- 
2.50.0