diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-12-14 19:03:59 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-12-14 19:04:20 +0530 |
commit | c4c162f33abf8ea7d3b4b9d171529fa022883bc0 (patch) | |
tree | 5afd155e4cfa16aa380e40bdc4f6ef3fcf9a2d97 /src | |
parent | c26b9abd05ff1e7bc2557c35be61809ef54a71ca (diff) | |
download | nnn-c4c162f33abf8ea7d3b4b9d171529fa022883bc0.tar.gz |
Refresh on empty command
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |