termpty: fix _termpty_cell_is_empty()

was not working on cell = {}
This commit is contained in:
Boris Faure 2019-03-01 13:23:02 +01:00
parent 1c9c2a19ed
commit 0f45747925
1 changed files with 4 additions and 4 deletions

View File

@ -848,10 +848,10 @@ termpty_free(Termpty *ty)
static Eina_Bool
_termpty_cell_is_empty(const Termcell *cell)
{
return (((cell->codepoint == 0) ||
(cell->att.invisible) ||
(cell->att.fg == COL_INVIS)) &&
(cell->att.bg == COL_INVIS));
return ((cell->codepoint == 0) ||
(cell->att.invisible) ||
(cell->att.fg == COL_INVIS)) &&
((cell->att.bg == COL_INVIS) || (cell->att.bg == COL_DEF));
}
static Eina_Bool