Revert "Prefer NNN_USE_EDITOR over opener (option )"

This reverts commit 7f3d2c10aa.
This commit is contained in:
Arun Prakash Jana 2019-12-20 02:51:25 +05:30
parent 583b6a84f5
commit 7d171368ad
1 changed files with 2 additions and 2 deletions

View File

@ -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 */