From f7cacaee5c8cac5e97d30ec98036afe176bd62c6 Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Sat, 22 Jun 2024 12:52:32 +0200 Subject: [PATCH] dirs in context color fix --- src/nnn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index d7c53166..ccbebe74 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2284,8 +2284,10 @@ static bool initcurses(void *oldmask) msg(env_cfg[NNN_COLORS]); return FALSE; } - } else + } else { *pcode = (*colors < '0' || *colors > '7') ? 4 : *colors - '0'; + fcolors[i + 1] = *pcode; + } ++colors; } else *pcode = 4;