move functions around.
[apps/madmutt.git] / pattern.c
index 392a4a6..40600b6 100644 (file)
--- a/pattern.c
+++ b/pattern.c
 #include <lib-mime/mime.h>
 #include <lib-ui/enter.h>
 #include <lib-ui/curses.h>
+#include <lib-mx/mx.h>
 
 #include "mutt.h"
 #include "alias.h"
 #include "handler.h"
-#include "mx.h"
 #include "keymap.h"
 #include "copy.h"
 
@@ -1141,7 +1141,7 @@ void mutt_check_simple (char *s, ssize_t len, const char *simple)
       m_strcpy(s, len, "~U");
     else {
       quote_simple (tmp, sizeof (tmp), s);
-      mutt_expand_fmt (s, len, simple, tmp);
+      m_snsubst(s, len, simple, tmp);
     }
   }
 }