diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-12-08 01:11:55 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-12-08 01:11:55 +0530 |
commit | 572094c838a3b77831a6897dd6c7c753e01c62da (patch) | |
tree | b0757d4d6341c049ed165aa76b2ff6997b066b82 | |
parent | 0d435614b27c3cb57cd3e256abe34eafd68e936d (diff) | |
download | nnn-572094c838a3b77831a6897dd6c7c753e01c62da.tar.gz |
Fix wrong prompt
-rw-r--r-- | src/nnn.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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); |