From c4c162f33abf8ea7d3b4b9d171529fa022883bc0 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 14 Dec 2018 19:03:59 +0530 Subject: [PATCH] Refresh on empty command --- src/nnn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index fcef993c..4f755746 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);