summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
Diffstat (limited to 'enter.c')
-rw-r--r--enter.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/enter.c b/enter.c
index a0ec76a8..b85bf3d0 100644
--- a/enter.c
+++ b/enter.c
@@ -453,6 +453,15 @@ self_insert:
buf[lastchar] = 0;
if (!pass)
mutt_history_add (hclass, (char *) buf);
+ if (multiple)
+ {
+ char **tfiles;
+ *numfiles = 1;
+ tfiles = safe_malloc (*numfiles * sizeof (char *));
+ mutt_expand_path ((char *) buf, buflen);
+ tfiles[0] = safe_strdup ((char *) buf);
+ *files = tfiles;
+ }
return (0);
}
else if ((ch < ' ' || IsPrint (ch)) && (lastchar + 1 < buflen))