termpty (_termpty_cell_is_empty): resolve a conflict of color9 vs COL_INVIS

This commit is contained in:
Koichi Murase 2022-03-14 17:30:28 +09:00
parent 7e4ab152a5
commit 40bd9a0161
1 changed files with 2 additions and 2 deletions

View File

@ -924,8 +924,8 @@ _termpty_cell_is_empty(const Termcell *cell)
{
return ((cell->codepoint == 0) ||
(cell->att.invisible) ||
(cell->att.fg == COL_INVIS)) &&
((cell->att.bg == COL_INVIS) || (cell->att.bg == COL_DEF));
((cell->att.fg256 == 0) && (cell->att.fg == COL_INVIS))) &&
(((cell->att.bg256 == 0) && (cell->att.bg == COL_INVIS)) || (cell->att.bg == COL_DEF));
}
static Eina_Bool