From 3fb0d2bc04625ce5f2b6e151a877f82749955063 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sat, 23 Jan 1999 07:41:37 +0000 Subject: Fix the attach-multi patch. --- enter.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'enter.c') 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)) -- cgit v1.2.3