]> granicus.if.org Git - neomutt/commitdiff
Fix the attach-multi patch.
authorThomas Roessler <roessler@does-not-exist.org>
Sat, 23 Jan 1999 07:41:37 +0000 (07:41 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sat, 23 Jan 1999 07:41:37 +0000 (07:41 +0000)
enter.c

diff --git a/enter.c b/enter.c
index a0ec76a82a0569319b2ecff349d3eb28cd730c69..b85bf3d0c40c173828a1ea3a94addd59a2724a3e 100644 (file)
--- 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))