Introduction
Introduction Statistics Contact Development Disclaimer Help
Revert "fix input text matching" - dmenu - my customized version of dmenu (hilt…
git clone git://git.codemadness.org/dmenu
Log
Files
Refs
README
LICENSE
---
commit 5cd66e2c6ca6a82e59927d495498fa6e478594d6
parent e90b88e12a88d6214c00d5ee58ceb69446aa5ac4
Author: Andrew Gregory <[email protected]>
Date: Wed, 7 Dec 2016 09:45:01 -0500
Revert "fix input text matching"
This reverts commit 09d0a36e0370f7ca9bdb171bf93c5ac3131c5a92.
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.
Diffstat:
M dmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/dmenu.c b/dmenu.c
@@ -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]))
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.