From c26b9abd05ff1e7bc2557c35be61809ef54a71ca Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 13 Dec 2018 21:49:06 +0530 Subject: [PATCH] Quick switch on empty command --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);