diff options
| author | 2018-04-25 21:57:46 +0530 | |
|---|---|---|
| committer | 2018-04-25 22:46:19 +0530 | |
| commit | 18deea6383f64cb7f57f593f2216193ce7f3b14b (patch) | |
| tree | 4b7ff05ebd793b2b7d1de38eee2488f7be53d957 | |
| parent | 33cec52d4e9fca026c38517cb952bed59743217c (diff) | |
| download | nnn-18deea6383f64cb7f57f593f2216193ce7f3b14b.tar.gz | |
Handle all ^ chars in main loop
| -rw-r--r-- | nnn.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1135,6 +1135,13 @@ filterentries(char *path) } if (r == OK) { + /* Handle all control chars in main loop */ + if (keyname(*ch)[0] == '^') { + if (len == 1) + cur = oldcur; + goto end; + } + switch (*ch) { case '\r': // with nonl(), this is ENTER key value if (len == 1) { @@ -1147,6 +1154,7 @@ filterentries(char *path) redraw(path); goto end; +#if 0 case CONTROL('L'): // fallthrough case CONTROL('K'): // fallthrough case CONTROL('Y'): // fallthrough @@ -1165,6 +1173,7 @@ filterentries(char *path) if (len == 1) cur = oldcur; goto end; +#endif case '?': // '?' is an invalid regex, show help instead if (len == 1) { cur = oldcur; |