summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2023-06-11 19:27:27 -0300
committerAndrés <andmarti@gmail.com>2023-06-11 19:27:27 -0300
commitc437c6e3bfeaa3f2a4d4992bbef6ec98a273badc (patch)
tree3a51ca795edcb313f63fa037390da422f480f2c0
parent4c5efde4599758f88a6ddd62240e4c54a8997f0d (diff)
do not change color after setting format - issue 819
-rw-r--r--src/tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui.c b/src/tui.c
index d66825b..6e9c786 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -871,7 +871,7 @@ int ui_show_content(WINDOW * win, int nb_mobile_rows, int nb_mobile_cols) {
ui_set_ucolor(win, &ucolors[EXPRESSION], ucolors[EXPRESSION].bg != DEFAULT_COLOR ? DEFAULT_COLOR : col % 2 == 0 ? ucolors[GRID_EVEN].bg : ucolors[GRID_ODD].bg);
} else if ((*p) && (*p)->label) { // string
ui_set_ucolor(win, &ucolors[STRG], ucolors[STRG].bg != DEFAULT_COLOR ? DEFAULT_COLOR : col % 2 == 0 ? ucolors[GRID_EVEN].bg : ucolors[GRID_ODD].bg);
- } else if ((*p) && (*p)->flags & is_valid && ! (*p)->format) { // numeric value
+ } else if ((*p) && (*p)->flags & is_valid) { // numeric value
ui_set_ucolor(win, &ucolors[NUMB], ucolors[NUMB].bg != DEFAULT_COLOR ? DEFAULT_COLOR : col % 2 == 0 ? ucolors[GRID_EVEN].bg : ucolors[GRID_ODD].bg);
} else if ((*p) && (*p)->format && (*p)->format[0] == 'd') { // date format
ui_set_ucolor(win, &ucolors[DATEF], ucolors[DATEF].bg != DEFAULT_COLOR ? DEFAULT_COLOR : col % 2 == 0 ? ucolors[GRID_EVEN].bg : ucolors[GRID_ODD].bg);