This commit is contained in:
Arun Prakash Jana 2020-04-06 21:06:39 +05:30
parent e1ed4c62c5
commit cee24984bc
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 6 additions and 5 deletions

View File

@ -2619,14 +2619,15 @@ static int filterentries(char *path, char *lastname)
showfilter(ln);
continue;
}
}
/* Reset cur in case it's a repeat search */
if (len == 1)
/* Reset cur in case it's a repeat search */
cur = 0;
if (len == REGEX_MAX - 1)
} else if (len == REGEX_MAX - 1) {
printmsg(messages[MSG_LIMIT]);
xdelay(XDELAY_INTERVAL_MS);
*ch = MSGWAIT;
break;
}
wln[len] = (wchar_t)*ch;
wln[++len] = '\0';