Xinqi Bao's Git
projects
/
dmenu.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
acbf35a
)
fix input text matching
author
Quentin Rameau <
[email protected]
>
Sun, 4 Oct 2015 12:47:52 +0000
(14:47 +0200)
committer
Hiltjo Posthuma <
[email protected]
>
Sun, 4 Oct 2015 13:04:59 +0000
(15:04 +0200)
just compare the size of the input string
dmenu.c
diff
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
c9fb38b
..
4f22ffe
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-219,7
+219,7
@@
match(void)
len = tokc ? strlen(tokv[0]) : 0;
matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL;
- textsize = strlen(text)
+ 1
;
+ textsize = strlen(text);
for (item = items; item && item->text; item++) {
for (i = 0; i < tokc; i++)
if (!fstrstr(item->text, tokv[i]))