mirror of
https://github.com/jarun/nnn.git
synced 2024-11-10 13:23:12 +00:00
Minor changes
This commit is contained in:
parent
8791444adc
commit
f8de2b2254
|
@ -153,7 +153,7 @@
|
||||||
/* Version compare macros */
|
/* Version compare macros */
|
||||||
/*
|
/*
|
||||||
* states: S_N: normal, S_I: comparing integral part, S_F: comparing
|
* states: S_N: normal, S_I: comparing integral part, S_F: comparing
|
||||||
* fractionnal parts, S_Z: idem but with leading Zeroes only
|
* fractional parts, S_Z: idem but with leading Zeroes only
|
||||||
*/
|
*/
|
||||||
#define S_N 0x0
|
#define S_N 0x0
|
||||||
#define S_I 0x3
|
#define S_I 0x3
|
||||||
|
@ -349,7 +349,7 @@ static const char * const messages[] = {
|
||||||
"/.nnnXXXXXX",
|
"/.nnnXXXXXX",
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Supported config env vars */
|
/* Supported configuration environment variables */
|
||||||
#define NNN_BMS 0
|
#define NNN_BMS 0
|
||||||
#define NNN_OPENER 1
|
#define NNN_OPENER 1
|
||||||
#define NNN_CONTEXT_COLORS 2
|
#define NNN_CONTEXT_COLORS 2
|
||||||
|
@ -390,7 +390,7 @@ static const char * const env_cfg[] = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Required env vars */
|
/* Required environment variables */
|
||||||
#define SHELL 0
|
#define SHELL 0
|
||||||
#define VISUAL 1
|
#define VISUAL 1
|
||||||
#define EDITOR 2
|
#define EDITOR 2
|
||||||
|
@ -869,7 +869,7 @@ static bool cpsafe(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fail if copy file path isn't accessible */
|
/* Fail if copy file path isn't accessible */
|
||||||
if (access(g_cppath, R_OK) == -1) {
|
if (access(g_cppath, R_OK | W_OK) == -1) {
|
||||||
printmsg("check copyfile permission");
|
printmsg("check copyfile permission");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue