Handle starting ^ at filter prompt

This commit is contained in:
Arun Prakash Jana 2018-12-05 05:35:06 +05:30
parent e26c21ce0b
commit 47aa3366c2
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -1205,7 +1205,7 @@ static int filterentries(char *path)
if (r == OK) {
/* Handle all control chars in main loop */
if (keyname(*ch)[0] == '^') {
if (keyname(*ch)[0] == '^' && *ch != '^') {
if (len == 1)
cur = oldcur;
goto end;