aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5cd51a5..f7d67e9 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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';