nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 05c84f7b80872062eaf15bdfbb45e43161bd7eeb
parent e3aed0f658e654a33a651e39c5cf13601520d430
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 17 Nov 2019 05:36:39 +0530

Clear prompt after running a command.

Diffstat:
Msrc/nnn.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -1976,6 +1976,16 @@ static int filterentries(char *path) /* If there's a filter, try a command on ^P */ if (cfg.filtercmd && *ch == CONTROL('P') && len > 1) { 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; }