summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tui.c b/src/tui.c
index 81998cd..97f78b3 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -810,6 +810,8 @@ void ui_show_content(WINDOW * win, int mxrow, int mxcol) {
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