projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d43561
)
Fix wrong prompt
author
Arun Prakash Jana <engineerarun@gmail.com>
Fri, 7 Dec 2018 19:41:55 +0000 (
01:11
+0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Fri, 7 Dec 2018 19:41:55 +0000 (
01:11
+0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index e634959b53729e3595c1b28adc9816815caa0df3..76405f38c2eb13895d2e801f47286959782cba62 100644
(file)
--- 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);