X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=browser.c;h=d91d0ef79d82059a22028b2d7426442ecea4cb4e;hp=c46c89ef1650d931c92a8960a7a9e58d30988fa8;hb=a743b55a20cbf3a33699fdb24dcb8638e878cc46;hpb=238b70e39b78f585c586bd51aef41988b3cc73d1 diff --git a/browser.c b/browser.c index c46c89e..d91d0ef 100644 --- a/browser.c +++ b/browser.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "mutt.h" #include "enter.h" @@ -22,7 +23,6 @@ #include "mutt_curses.h" #include "mutt_menu.h" #include "buffy.h" -#include "mapping.h" #include "sort.h" #include "browser.h" #include "attach.h" @@ -1191,10 +1191,9 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, /* assume that the user wants to see everything */ if (!buf[0]) m_strcpy(buf, sizeof(buf), "."); - SKIPWS (s); + s = vskipspaces(s); if (*s == '!') { - s++; - SKIPWS (s); + s = vskipspaces(s + 1); not = 1; } @@ -1205,7 +1204,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, mutt_error ("%s", buf); } else { - str_replace (&Mask.pattern, buf); + m_strreplace(&Mask.pattern, buf); regfree (Mask.rx); p_delete(&Mask.rx); Mask.rx = rx;