summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-23 07:41:37 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-23 07:41:37 +0000
commit3fb0d2bc04625ce5f2b6e151a877f82749955063 (patch)
tree40decb9f7823444e243083f69a601fe66e908480 /enter.c
parent717806b1d73af72c334366d908e8f508284ccea2 (diff)
Fix the attach-multi patch.
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))