Ignore backspace at empty filter prompt

This commit is contained in:
Arun Prakash Jana 2020-02-29 06:08:26 +05:30
parent d1fcc5351e
commit 37987d487e
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
3. To open text files in `$VISUAL` (else `$EDITOR`, fallback vi) add program option `-e` in your alias. 3. To open text files in `$VISUAL` (else `$EDITOR`, fallback vi) add program option `-e` in your alias.
4. For additional functionality [install plugins](https://github.com/jarun/nnn/tree/master/plugins#installing-plugins). 4. For additional functionality [install plugins](https://github.com/jarun/nnn/tree/master/plugins#installing-plugins).
5. To copy selected file paths to system clipboard and show notis on cp, mv, rm completion use option `-x`. 5. To copy selected file paths to system clipboard and show notis on cp, mv, rm completion use option `-x`.
6. For a strictly CLI environment, customize and use plugin [`nuke`](https://github.com/jarun/nnn/blob/master/plugins/nuke). 6. For a strictly CLI environment, customize and use plugin [`nuke`](https://github.com/jarun/nnn/blob/master/plugins/nuke) with option `-c`.
Don't memorize! Arrows (or <kbd>h</kbd> <kbd>j</kbd> <kbd>k</kbd> <kbd>l</kbd>), <kbd>/</kbd>, <kbd>q</kbd> suffice. <kbd>Tab</kbd> creates, cycles contexts. <kbd>?</kbd> lists shortcuts. Don't memorize! Arrows (or <kbd>h</kbd> <kbd>j</kbd> <kbd>k</kbd> <kbd>l</kbd>), <kbd>/</kbd>, <kbd>q</kbd> suffice. <kbd>Tab</kbd> creates, cycles contexts. <kbd>?</kbd> lists shortcuts.

View file

@ -2469,7 +2469,7 @@ static int filterentries(char *path, char *lastname)
wcstombs(ln, wln, REGEX_MAX); wcstombs(ln, wln, REGEX_MAX);
ndents = total; ndents = total;
} else } else
*ch = CONTROL('L'); continue;
// fallthrough // fallthrough
case CONTROL('L'): case CONTROL('L'):
if (*ch == CONTROL('L')) { if (*ch == CONTROL('L')) {