]> Sergey Matveev's repositories - nnn.git/commitdiff
Ignore backspace at empty filter prompt
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 29 Feb 2020 00:38:26 +0000 (06:08 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 29 Feb 2020 00:38:26 +0000 (06:08 +0530)
README.md
src/nnn.c

index d403b7f07bb8a7ac53e234ae7e9814e3befe592e..a3446b98599a397be6644ae2e8a5361dc901650b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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.
 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`.
-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.
 
index 7835be61d5fd44073efee3dd22bb759b0b1f8cce..0a7aa7082b41e7c993b9463471ff6a043dba09eb 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2469,7 +2469,7 @@ static int filterentries(char *path, char *lastname)
                                wcstombs(ln, wln, REGEX_MAX);
                                ndents = total;
                        } else
-                               *ch = CONTROL('L');
+                               continue;
                        // fallthrough
                case CONTROL('L'):
                        if (*ch == CONTROL('L')) {