Browse Source

Revert "fix input text matching"

This reverts commit 09d0a36e03.

Using strncmp with the length of the user input turns it into a prefix
match rather than an exact match as it's supposed to be.
master
Andrew Gregory 5 years ago
committed by Hiltjo Posthuma
parent
commit
5cd66e2c6c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dmenu.c

+ 1
- 1
dmenu.c View File

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


Loading…
Cancel
Save