Browse Source

fix input text matching

just compare the size of the input string
master
Quentin Rameau 9 years ago committed by Hiltjo Posthuma
parent
commit
09d0a36e03
  1. 2
      dmenu.c

2
dmenu.c

@ -219,7 +219,7 @@ match(void)
len = tokc ? strlen(tokv[0]) : 0; len = tokc ? strlen(tokv[0]) : 0;
matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL; matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL;
textsize = strlen(text) + 1; textsize = strlen(text);
for (item = items; item && item->text; item++) { for (item = items; item && item->text; item++) {
for (i = 0; i < tokc; i++) for (i = 0; i < tokc; i++)
if (!fstrstr(item->text, tokv[i])) if (!fstrstr(item->text, tokv[i]))

Loading…
Cancel
Save