about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-10 11:46:53 +0000
committerEric Wong <e@80x24.org>2021-09-10 20:43:33 +0000
commit6b3dd4a43a50d3bcefe92f5f5934647e7f57d1be (patch)
treea6afcff9f38b8158e10200f5cb63db8f787afaa2 /lib/PublicInbox/LeiXSearch.pm
parent1d55b4676fe9312c792c75de98cc8ea0423db951 (diff)
downloadpublic-inbox-6b3dd4a43a50d3bcefe92f5f5934647e7f57d1be.tar.gz
"# 0 written to $FOLDER" messages aren't important to the
user, so we can show them in real time and allow them to
be lost in the terminal scroll.  When >0 messages are
written to a folder, we'll show them last so a user
will know which folders to open with their MUA.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index b6d7bf2b..709a3b3a 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -400,8 +400,9 @@ Error closing $lei->{ovv}->{dst}: $!
                 my $tot = $lei->{-mset_total} // 0;
                 my $nr = $lei->{-nr_write} // 0;
                 if ($l2m) {
-                        $lei->qfin("# $nr written to " .
-                                "$lei->{ovv}->{dst} ($tot matches)");
+                        my $m = "# $nr written to " .
+                                "$lei->{ovv}->{dst} ($tot matches)";
+                        $nr ? $lei->qfin($m) : $lei->qerr($m);
                 } else {
                         $lei->qerr("# $tot matches");
                 }