]> granicus.if.org Git - mutt/commitdiff
Completion fix. From Aaron Schrab <aaron+mutt@schrab.com>.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 18 Jan 2001 11:27:56 +0000 (11:27 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 18 Jan 2001 11:27:56 +0000 (11:27 +0000)
complete.c

index 86f41e27269e94e7554876644d02cfdafa101028..04be8d8b0e20e74bc5a58aaa6b4881d1cafbbf45 100644 (file)
@@ -87,7 +87,7 @@ int mutt_complete (char *s, size_t slen)
       *p++ = 0;
       snprintf (buf, sizeof (buf), "%s/%s", exp_dirpart, s+1);
       strfcpy (exp_dirpart, buf, sizeof (exp_dirpart));
-      snprintf (buf, sizeof (buf), "%s/%s", dirpart, s+1);
+      snprintf (buf, sizeof (buf), "%s%s/", dirpart, s+1);
       strfcpy (dirpart, buf, sizeof (dirpart));
       strfcpy (filepart, p, sizeof (filepart));
     }