projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
583b6a8
)
Revert "Prefer NNN_USE_EDITOR over opener (option )"
author
Arun Prakash Jana <engineerarun@gmail.com>
Thu, 19 Dec 2019 21:21:25 +0000 (
02:51
+0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Thu, 19 Dec 2019 21:21:25 +0000 (
02:51
+0530)
This reverts commit
7f3d2c10aaabee34cfda435c199335f023215fba
.
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index 8f2d53fbd617d92b637011217aa46239d96fabff..cf2826fd1a5ccef8246b2fddaf8b8b3c3cefcba7 100644
(file)
--- a/
src/nnn.c
+++ b/
src/nnn.c
@@
-5814,8
+5814,8
@@
int main(int argc, char *argv[])
}
}
- /* Edit text in
"editor" if opted (gets preference over option `-c`
) */
- if (xgetenv_set(env_cfg[NNN_USE_EDITOR]))
+ /* Edit text in
EDITOR if opted (and opener is not all-CLI
) */
+ if (
!cfg.cliopener &&
xgetenv_set(env_cfg[NNN_USE_EDITOR]))
cfg.useeditor = 1;
/* Get VISUAL/EDITOR */