diff options
author | 2020-04-06 21:06:39 +0530 | |
---|---|---|
committer | 2020-04-06 21:06:39 +0530 | |
commit | cee24984bcd0028a481a9ad825d74c0a4d5d0045 (patch) | |
tree | 1dc09b87eb6b0e4a761a091093d273a87674a325 | |
parent | e1ed4c62c5cb76e443a5e85d44d114163d466458 (diff) | |
download | nnn-cee24984bcd0028a481a9ad825d74c0a4d5d0045.tar.gz |
Fix #511
-rw-r--r-- | src/nnn.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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'; |