]> git.armaanb.net Git - dmenu.git/commitdiff
fix input text matching
authorQuentin Rameau <quinq@fifth.space>
Sun, 4 Oct 2015 12:47:52 +0000 (14:47 +0200)
committerHiltjo 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

diff --git a/dmenu.c b/dmenu.c
index c9fb38bde2e487574f8367d33a6a18979bfdac9c..4f22ffeb874b8871d3008e87c1c0c810bfac0c4b 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]))