aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);