aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-13 21:49:06 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-13 21:49:06 +0530
commitc26b9abd05ff1e7bc2557c35be61809ef54a71ca (patch)
tree342627d9e8be7259edeb5ef27c3b95d1a333f8da /src
parentf76724e0efdbacc6e3ac19ab802ff031f7eba2c4 (diff)
downloadnnn-c26b9abd05ff1e7bc2557c35be61809ef54a71ca.tar.gz
Quick switch on empty command
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 7706eef..fcef993 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3423,7 +3423,7 @@ nochange:
} else if (sel == SEL_RUNCMD) {
tmp = xreadline(NULL, "> ");
if (!tmp || !tmp[0])
- goto nochange;
+ break;
spawn(shell, "-c", tmp, path, F_NORMAL | F_SIGINT);
} else
spawn(shell, shell_arg, NULL, path, F_NORMAL | F_MARKER);