Fuzzymatch integration adding case insensitive support for fuzzyhighlight patch

This commit is contained in:
bakkeby 2020-04-09 08:54:00 +02:00
parent 0993a2931a
commit a04fa75d7f

View File

@ -12,7 +12,12 @@ drawhighlights(struct item *item, int x, int y, int maxw)
? SchemeSelHighlight
: SchemeNormHighlight]);
for (i = 0, highlight = item->text; *highlight && text[i];) {
if (*highlight == text[i]) {
#if FUZZYMATCH_PATCH
if (!fstrncmp(&(*highlight), &text[i], 1))
#else
if (*highlight == text[i])
#endif // FUZZYMATCH_PATCH
{
/* get indentation */
c = *highlight;
*highlight = '\0';