mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Ignore backspace at empty filter prompt
This commit is contained in:
parent
d1fcc5351e
commit
37987d487e
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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')) {
|
||||||
|
|
Loading…
Reference in a new issue