From f49286fb39ff984f8fdbae7a890445a3e921aebb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Sun, 20 Mar 2016 12:18:18 +0100 Subject: [PATCH] fixed missing color check --- src/viewer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viewer.c b/src/viewer.c index c23dc40..d106a62 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -520,7 +520,8 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo // fill rest off line with spaces if we are in a code block if(CHECK_BIT(line->bits, IS_CODE) && colors) { - wattron(window, COLOR_PAIR(CP_BLACK)); + if(colors) + wattron(window, COLOR_PAIR(CP_BLACK)); for(i = getcurx(window) - x; i < max_cols; i++) wprintw(window, "%s", " "); } -- 2.20.1