]> granicus.if.org Git - neomutt/commitdiff
Add message count to $move quadoption prompt.
authorKevin McCarthy <kevin@8t8.us>
Fri, 10 Nov 2017 21:06:43 +0000 (13:06 -0800)
committerRichard Russon <rich@flatcap.org>
Wed, 15 Nov 2017 23:16:49 +0000 (23:16 +0000)
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 728c78741eefba7024e124280fa3b741ccda2900..1a42caa74fccae42b29a203715622e287f5c45ee 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -710,7 +710,7 @@ int mx_close_mailbox(struct 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);
       move_messages = query_quadoption(OPT_MOVE, buf);
       if (move_messages == MUTT_ABORT)
       {