mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Fix #165
This commit is contained in:
parent
6a816a5185
commit
75060f5923
|
@ -165,7 +165,7 @@ disabledbg()
|
||||||
#define ISODD(x) ((x) & 1)
|
#define ISODD(x) ((x) & 1)
|
||||||
#define TOUPPER(ch) \
|
#define TOUPPER(ch) \
|
||||||
(((ch) >= 'a' && (ch) <= 'z') ? ((ch) - 'a' + 'A') : (ch))
|
(((ch) >= 'a' && (ch) <= 'z') ? ((ch) - 'a' + 'A') : (ch))
|
||||||
#define CMD_LEN_MAX 5120
|
#define CMD_LEN_MAX (PATH_MAX + ((NAME_MAX + 1) << 1))
|
||||||
#define CURSR " > "
|
#define CURSR " > "
|
||||||
#define EMPTY " "
|
#define EMPTY " "
|
||||||
#define CURSYM(flag) ((flag) ? CURSR : EMPTY)
|
#define CURSYM(flag) ((flag) ? CURSR : EMPTY)
|
||||||
|
@ -3602,6 +3602,9 @@ int main(int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("%d\n", CMD_LEN_MAX);
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* Get the context colors; copier used as tmp var */
|
/* Get the context colors; copier used as tmp var */
|
||||||
if (cfg.showcolor) {
|
if (cfg.showcolor) {
|
||||||
copier = getenv("NNN_CONTEXT_COLORS");
|
copier = getenv("NNN_CONTEXT_COLORS");
|
||||||
|
|
Loading…
Reference in a new issue