]> Sergey Matveev's repositories - nnn.git/commitdiff
Honor -C for context colors
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 6 Sep 2020 00:22:25 +0000 (05:52 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 6 Sep 2020 00:36:59 +0000 (06:06 +0530)
README.md
src/nnn.c

index e8a2adc83822ff757a6d3d91ca86a76bee60f2ed..c9d93902ddebb97c7e539371fe50030736664bca 100644 (file)
--- 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
index adb5fcaa824334a33afddcdc9ca916430119b8d0..eda3cb9ffc550efa78d11c188f5cce1c4be783cd 100644 (file)
--- 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;