diff options
author | mongo <andmarti@gmail.com> | 2018-06-27 11:05:00 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2018-06-27 11:05:00 -0300 |
commit | 1630434b45b28ca62313668884a6039d84f4a135 (patch) | |
tree | d080a2abca0ecef7433c88f72f8f3f61d5cd1df2 /src | |
parent | a7f9e7d9584c90862791d7c19d663841dd82ac9c (diff) |
CELL_NEGATIVE fix
Diffstat (limited to 'src')
-rw-r--r-- | src/tui.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |