]> granicus.if.org Git - mutt/commitdiff
Add message count to $move quadoption prompt.
authorKevin McCarthy <kevin@8t8.us>
Fri, 10 Nov 2017 21:06:43 +0000 (13:06 -0800)
committerKevin McCarthy <kevin@8t8.us>
Fri, 10 Nov 2017 21:06:43 +0000 (13:06 -0800)
Display the number of messages that will be moved in the quadoption
prompt, which might prove helpful for some people.

Thank you to Daan van Rossum for suggesting the improvement.

mx.c

diff --git a/mx.c b/mx.c
index 1f991208686a5c7f8e7de10f397d73cfd4e1c464..a015bf44775540c6fd1cd7bc449dfda5fa31dc10 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -828,7 +828,8 @@ int mx_close_mailbox (CONTEXT *ctx, int *index_hint)
     if (isSpool && *mbox)
     {
       mutt_expand_path (mbox, sizeof (mbox));
-      snprintf (buf, sizeof (buf), _("Move read messages to %s?"), mbox);
+      snprintf (buf, sizeof (buf), _("Move %d read messages to %s?"),
+                read_msgs, mbox);
       if ((move_messages = query_quadoption (OPT_MOVE, buf)) == -1)
       {
        ctx->closing = 0;