mirror of
https://github.com/jarun/nnn.git
synced 2025-02-17 14:54:36 +00:00
Clear prompt after running a command.
This commit is contained in:
parent
e3aed0f658
commit
05c84f7b80
10
src/nnn.c
10
src/nnn.c
|
@ -1976,6 +1976,16 @@ static int filterentries(char *path)
|
||||||
/* If there's a filter, try a command on ^P */
|
/* If there's a filter, try a command on ^P */
|
||||||
if (cfg.filtercmd && *ch == CONTROL('P') && len > 1) {
|
if (cfg.filtercmd && *ch == CONTROL('P') && len > 1) {
|
||||||
prompt_run(pln, (ndents ? dents[cur].name : ""), path);
|
prompt_run(pln, (ndents ? dents[cur].name : ""), path);
|
||||||
|
|
||||||
|
/* Clear the prompt */
|
||||||
|
while (len > 1)
|
||||||
|
wln[--len] = '\0';
|
||||||
|
wcstombs(ln, wln, REGEX_MAX);
|
||||||
|
ndents = total;
|
||||||
|
if (matches(pln) != -1)
|
||||||
|
redraw(path);
|
||||||
|
|
||||||
|
printprompt(ln);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue