1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-09 11:44:18 +03:00

Prefer NNN_USE_EDITOR over opener (option )

This commit is contained in:
Arun Prakash Jana 2019-12-20 00:01:50 +05:30
parent c5cd668a52
commit 7f3d2c10aa
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -5814,8 +5814,8 @@ int main(int argc, char *argv[])
}
}
/* Edit text in EDITOR if opted (and opener is not all-CLI) */
if (!cfg.cliopener && xgetenv_set(env_cfg[NNN_USE_EDITOR]))
/* Edit text in "editor" if opted (gets preference over option `-c`) */
if (xgetenv_set(env_cfg[NNN_USE_EDITOR]))
cfg.useeditor = 1;
/* Get VISUAL/EDITOR */