nnn

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

commit c4c162f33abf8ea7d3b4b9d171529fa022883bc0
parent c26b9abd05ff1e7bc2557c35be61809ef54a71ca
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri, 14 Dec 2018 19:03:59 +0530

Refresh on empty command

Diffstat:
Msrc/nnn.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3422,9 +3422,8 @@ nochange: spawn(shell, tmp, dir, path, F_NORMAL | F_SIGINT); } else if (sel == SEL_RUNCMD) { tmp = xreadline(NULL, "> "); - if (!tmp || !tmp[0]) - break; - spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT); + if (tmp && tmp[0]) + spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT); } else spawn(shell, shell_arg, NULL, path, F_NORMAL | F_MARKER);