Revert "tyls: use eina_fnmatch"

This is not available in the released EFL versions that are supported
This reverts commit 4b7abf1e22.
devs/simotek/colorschemes
Boris Faure 1 year ago
parent 4b7abf1e22
commit 49266015c8
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 5
      src/bin/tyls.c

@ -10,6 +10,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fnmatch.h>
#include "private.h"
#include "tycommon.h"
@ -470,7 +471,7 @@ filematch(const char *name, const Cmatch *m)
for (i = 0; m[i].match; i++)
{
if (eina_fnmatch(m[i].match, name, 0))
if (!fnmatch(m[i].match, name, 0))
return m[i].icon;
}
return NULL;
@ -504,7 +505,7 @@ printmatch(const char *name, const Cmatch *m)
for (i = 0; m[i].match; i++)
{
if (eina_fnmatch(m[i].match, name, 0))
if (!fnmatch(m[i].match, name, 0))
{
if (m[i].fr <= 5) colorprint(CUBE, FG, m[i].fr, m[i].fg, m[i].fb);
if (m[i].br <= 5) colorprint(CUBE, BG, m[i].br, m[i].bg, m[i].bb);

Loading…
Cancel
Save