From ad7ea4832b7504845f210f4b15009bae8dd37194 Mon Sep 17 00:00:00 2001 From: mongo Date: Wed, 27 Jun 2018 14:10:44 -0300 Subject: work on issue 271 --- src/tui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tui.c b/src/tui.c index 97f78b3..6c75c34 100644 --- a/src/tui.c +++ b/src/tui.c @@ -806,12 +806,12 @@ void ui_show_content(WINDOW * win, int mxrow, int mxcol) { #ifdef USECOLORS if ((*p) && (*p)->cellerror) { // cellerror ui_set_ucolor(win, &ucolors[CELL_ERROR]); + } else if ((*p) && (*p)->v < 0) { // cell negative + ui_set_ucolor(win, &ucolors[CELL_NEGATIVE]); } else if ((*p) && (*p)->expr) { ui_set_ucolor(win, &ucolors[EXPRESSION]); } else if ((*p) && (*p)->label) { // string ui_set_ucolor(win, &ucolors[STRG]); - } else if ((*p) && (*p)->flags & is_valid && (*p)->v < 0) { // cell negative - ui_set_ucolor(win, &ucolors[CELL_NEGATIVE]); } else if ((*p) && (*p)->flags & is_valid && ! (*p)->format) { // numeric value ui_set_ucolor(win, &ucolors[NUMB]); } else if ((*p) && (*p)->format && (*p)->format[0] == 'd') { // date format -- cgit v1.2.3