From 36ed25fb4612d9697d782aade62584ed4a67bcde Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 1 Dec 2019 15:03:55 -0500 Subject: [PATCH] fix cell_fg_default() and cell_bg_default() --- include/notcurses.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/notcurses.h b/include/notcurses.h index 43b81ae3f..44793f2a2 100644 --- a/include/notcurses.h +++ b/include/notcurses.h @@ -503,7 +503,7 @@ cell_inherits_style(const cell* c){ // use the default color for the foreground static inline void cell_fg_default(cell* c){ - c->channels |= CELL_FGDEFAULT_MASK; + c->channels &= ~CELL_FGDEFAULT_MASK; } // is the cell using the terminal's default foreground color for its foreground? @@ -515,7 +515,7 @@ cell_fg_default_p(const cell* c){ // use the default color for the background static inline void cell_bg_default(cell* c){ - c->channels |= CELL_BGDEFAULT_MASK; + c->channels &= ~CELL_BGDEFAULT_MASK; } // is the cell using the terminal's default background color for its background?