mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Remove redundant env var
This commit is contained in:
parent
22b95be810
commit
10da1ac8dd
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue