diff options
author | Andrés <andmarti@gmail.com> | 2023-06-11 19:27:27 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2023-06-11 19:27:27 -0300 |
commit | c437c6e3bfeaa3f2a4d4992bbef6ec98a273badc (patch) | |
tree | 3a51ca795edcb313f63fa037390da422f480f2c0 | |
parent | 4c5efde4599758f88a6ddd62240e4c54a8997f0d (diff) |
do not change color after setting format - issue 819
-rw-r--r-- | src/tui.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |