aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-06 05:52:25 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-06 06:06:59 +0530
commit835f0c16d65da8c91bb501a847a04d3636f298d1 (patch)
treec27a8fa3f68cdb3ccf782d80217e8fe162f3620a /src
parent055652d979af4b3e93d804e9a3b0d6bb2cfe7650 (diff)
downloadnnn-835f0c16d65da8c91bb501a847a04d3636f298d1.tar.gz
Honor -C for context colors
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index adb5fca..eda3cb9 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1697,7 +1697,7 @@ static bool initcurses(void *oldmask)
if (colors && *colors == '#') {
char *sep = strchr(colors, ';');
- if (COLORS >= 256) {
+ if (!g_state.oldcolor && COLORS >= 256) {
++colors;
ext = TRUE;