From 572094c838a3b77831a6897dd6c7c753e01c62da Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 8 Dec 2018 01:11:55 +0530 Subject: [PATCH] Fix wrong prompt --- src/nnn.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index e634959b..76405f38 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3221,11 +3221,10 @@ nochange: goto nochange; } - r = get_input("press 'c' for cli mode"); - if (r == 'c') - r = F_NORMAL; - else - r = F_NOWAIT | F_NOTRACE; + if (sel == SEL_OPEN || sel == SEL_LAUNCH) { + r = get_input("press 'c' for cli mode"); + (r == 'c') ? (r = F_NORMAL) : (r = F_NOWAIT | F_NOTRACE); + } if (sel == SEL_OPEN) { getprogarg(tmp, &ptr);