Remove redundant env var

This commit is contained in:
Arun Prakash Jana 2019-02-06 02:31:00 +05:30
parent 22b95be810
commit 10da1ac8dd
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -433,7 +433,6 @@ static const char * const messages[] = {
#define NNN_NO_AUTOSELECT 10 #define NNN_NO_AUTOSELECT 10
#define NNN_RESTRICT_NAV_OPEN 11 #define NNN_RESTRICT_NAV_OPEN 11
#define NNN_RESTRICT_0B 12 #define NNN_RESTRICT_0B 12
#define NNN_PLAIN_FILTER 13
static const char * const env_cfg[] = { static const char * const env_cfg[] = {
"NNN_BMS", "NNN_BMS",
@ -449,7 +448,6 @@ static const char * const env_cfg[] = {
"NNN_NO_AUTOSELECT", "NNN_NO_AUTOSELECT",
"NNN_RESTRICT_NAV_OPEN", "NNN_RESTRICT_NAV_OPEN",
"NNN_RESTRICT_0B", "NNN_RESTRICT_0B",
"NNN_PLAIN_FILTER",
}; };
/* Required env vars */ /* Required env vars */
@ -2452,7 +2450,7 @@ static bool show_help(char *path)
dprintf(fd, "\n"); dprintf(fd, "\n");
} }
for (i = NNN_OPENER; i <= NNN_PLAIN_FILTER; ++i) { for (i = NNN_OPENER; i <= NNN_RESTRICT_0B; ++i) {
start = getenv(env_cfg[i]); start = getenv(env_cfg[i]);
if (start) { if (start) {
if (i < NNN_USE_EDITOR) if (i < NNN_USE_EDITOR)