From 40bd9a0161e90c23c38ceb00bdb62df98bcf5c38 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Mon, 14 Mar 2022 17:30:28 +0900 Subject: [PATCH] termpty (_termpty_cell_is_empty): resolve a conflict of color9 vs COL_INVIS --- src/bin/termpty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/termpty.c b/src/bin/termpty.c index 430cb558..154365d7 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c @@ -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