aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-14 19:03:59 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-14 19:04:20 +0530
commitc4c162f33abf8ea7d3b4b9d171529fa022883bc0 (patch)
tree5afd155e4cfa16aa380e40bdc4f6ef3fcf9a2d97 /src
parentc26b9abd05ff1e7bc2557c35be61809ef54a71ca (diff)
downloadnnn-c4c162f33abf8ea7d3b4b9d171529fa022883bc0.tar.gz
Refresh on empty command
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index fcef993..4f75574 100644
--- 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);