summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-03-31 18:15:31 -0700
committerKevin McCarthy <kevin@8t8.us>2017-03-31 18:15:31 -0700
commitde879bfa5b37fd40db3e9a31f0eec8027b97da77 (patch)
tree4a1f9187953ae70129f6f0b7cb24d99bd25151f7 /commands.c
parentee66d1d8e2a720d2482874ea0316bb9af5f6741a (diff)
Remove refresh parameter from mutt_enter_fname().
Also remove it from mutt_save_message(), which used it to pass through to mutt_enter_fname(). The callers of this already had redraw logic, to which REDRAW_STATUS merely needed to be added.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/commands.c b/commands.c
index f3fbc582..58b9c8d0 100644
--- a/commands.c
+++ b/commands.c
@@ -727,8 +727,7 @@ int _mutt_save_message (HEADER *h, CONTEXT *ctx, int delete, int decode, int dec
}
/* returns 0 if the copy/save was successful, or -1 on error/abort */
-int mutt_save_message (HEADER *h, int delete,
- int decode, int decrypt, int *redraw)
+int mutt_save_message (HEADER *h, int delete, int decode, int decrypt)
{
int i, need_buffy_cleanup;
int need_passphrase = 0, app=0;
@@ -736,9 +735,6 @@ int mutt_save_message (HEADER *h, int delete,
CONTEXT ctx;
struct stat st;
- *redraw = 0;
-
-
snprintf (prompt, sizeof (prompt),
decode ? (delete ? _("Decode-save%s to mailbox") :
_("Decode-copy%s to mailbox")) :
@@ -786,17 +782,9 @@ int mutt_save_message (HEADER *h, int delete,
}
mutt_pretty_mailbox (buf, sizeof (buf));
- if (mutt_enter_fname (prompt, buf, sizeof (buf), redraw, 0) == -1)
+ if (mutt_enter_fname (prompt, buf, sizeof (buf), 0) == -1)
return (-1);
- if (*redraw != REDRAW_FULL)
- {
- if (!h)
- *redraw = REDRAW_INDEX | REDRAW_STATUS;
- else
- *redraw = REDRAW_STATUS;
- }
-
if (!buf[0])
return (-1);