diff --git a/src/fontfile/fontdir.c b/src/fontfile/fontdir.c index aae1f2e..d45a741 100644 --- a/src/fontfile/fontdir.c +++ b/src/fontfile/fontdir.c @@ -366,6 +366,14 @@ PatternMatch(char *pat, int patdashes, c for (;;) { switch (c = *pat++) { case '*': + while (pat[0] == XK_minus && pat[1] == '*') { + while ((t = *string++) != XK_minus) + if (!t) + return 0; + patdashes--; + stringdashes--; + pat += 2; + } if (!(c = *pat++)) return 1; if (c == XK_minus) {