From 835f0c16d65da8c91bb501a847a04d3636f298d1 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 6 Sep 2020 05:52:25 +0530 Subject: [PATCH] Honor -C for context colors --- README.md | 1 + src/nnn.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e8a2adc8..c9d93902 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw - Static binary available (no need to install) - Minimal library deps, easy to compile - No config file, minimal config with sensible defaults + - Plugin to backup configuration - Widely available on many packagers - Touch enabled, comfortable on handhelds too! - Unicode support diff --git a/src/nnn.c b/src/nnn.c index adb5fcaa..eda3cb9f 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;