]> granicus.if.org Git - mutt/commitdiff
Fix the "!!" shortcut for the last folder. Noted by Byrial Jensen.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 20 Mar 2000 10:32:18 +0000 (10:32 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 20 Mar 2000 10:32:18 +0000 (10:32 +0000)
muttlib.c

index a0022b9f89a65f62b5177a3fec3983365abe330f..baa073dd51e5a5598578053208cc4f8a27a21846 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -363,12 +363,12 @@ char *mutt_expand_path (char *s, size_t slen)
       q = Inbox;
     else if (*s == '<')
       q = Outbox;
+    else if (!mutt_strcmp (s, "!!"))   /* elm compatibility */
+      q = LastFolder;
     else if (*s == '!')
       q = Spoolfile;
     else if (*s == '-')
       q = LastFolder;
-    else if (!mutt_strcmp (s, "!!"))   /* elm compatibility */
-      q = LastFolder;
     else
       return s;