src/nnn.c | 7 ++++--- diff --git a/src/nnn.c b/src/nnn.c index fc5333108f4735c73f3de7533526ce4facc7568d..dd3a26b64a056b9f235c674a2042a641bd719124 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -187,6 +187,7 @@ #define ASCII_MAX 128 #define EXEC_ARGS_MAX 10 #define LIST_FILES_MAX (1 << 16) #define SCROLLOFF 3 +#define COLOR_256 256 /* Time intervals */ #define DBLCLK_INTERVAL_NS (400000000) @@ -2091,7 +2092,7 @@ start_color(); use_default_colors(); /* Initialize file colors */ - if (COLORS >= 256) { + if (COLORS >= COLOR_256) { if (!(g_state.oldcolor || init_fcolors())) { exitcurses(); msg(env_cfg[NNN_FCOLORS]); @@ -2106,7 +2107,7 @@ if (colors && *colors == '#') { char *sep = strchr(colors, ';'); - if (!g_state.oldcolor && COLORS >= 256) { + if (!g_state.oldcolor && COLORS >= COLOR_256) { ++colors; ext = TRUE; @@ -2150,7 +2151,7 @@ } #ifdef ICONS_ENABLED if (!g_state.oldcolor) { - uchar_t icolors[256] = {0}; + uchar_t icolors[COLOR_256] = {0}; char c; memset(icon_positions, 0x7f, sizeof(icon_positions));