aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 20f42b6..6e55389 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1524,7 +1524,7 @@ static bool initcurses(void *oldmask)
#endif
curs_set(FALSE); /* Hide cursor */
- if (!(g_states & STATE_NOCOLOR)) {
+ if (!(g_states & STATE_NOCOLOR || getenv("NO_COLOR"))) {
start_color();
use_default_colors();