Revert "fix input text matching" 5cd66e2c
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.
Andrew Gregory · 2016-12-07 09:45 1 file(s) · +1 −1
dmenu.c +1 −1
228 228
	len = tokc ? strlen(tokv[0]) : 0;
229 229
230 230
	matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL;
231 -
	textsize = strlen(text);
231 +
	textsize = strlen(text) + 1;
232 232
	for (item = items; item && item->text; item++) {
233 233
		for (i = 0; i < tokc; i++)
234 234
			if (!fstrstr(item->text, tokv[i]))