aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-20 02:51:25 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-20 02:51:25 +0530
commit7d171368ad1059e9112d2542c70de0405fb2e6f1 (patch)
tree392eb61b7ecd08ea0c805bc2cd0508f03fdd242a /src/nnn.c
parent583b6a84f54427d20681fa23cbc72ad0a94cf9fd (diff)
downloadnnn-7d171368ad1059e9112d2542c70de0405fb2e6f1.tar.gz
Revert "Prefer NNN_USE_EDITOR over opener (option )"
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 8f2d53f..cf2826f 100644
--- 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 */