aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-06 21:37:36 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-06 21:39:37 +0530
commit46f17885ceea373f83b6eedcb276e609eb2f87c0 (patch)
tree5794e097b1ca08fba044cf3896b3d1d62a7ac9b4
parentcee24984bcd0028a481a9ad825d74c0a4d5d0045 (diff)
downloadnnn-46f17885ceea373f83b6eedcb276e609eb2f87c0.tar.gz
Fix #511: chew ling strings at filter prompt
-rw-r--r--src/nnn.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f7d67e9..8c24953 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2622,12 +2622,8 @@ static int filterentries(char *path, char *lastname)
/* Reset cur in case it's a repeat search */
cur = 0;
- } else if (len == REGEX_MAX - 1) {
- printmsg(messages[MSG_LIMIT]);
- xdelay(XDELAY_INTERVAL_MS);
- *ch = MSGWAIT;
- break;
- }
+ } else if (len == REGEX_MAX - 1)
+ continue;
wln[len] = (wchar_t)*ch;
wln[++len] = '\0';