pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbf35a
)
fix input text matching
author
Quentin Rameau
<quinq@fifth.space>
Sun, 4 Oct 2015 12:47:52 +0000
(14:47 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 4 Oct 2015 13:04:59 +0000
(15:04 +0200)
just compare the size of the input string
dmenu.c
patch
|
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]))