aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index e634959..76405f3 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);