diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-09-06 05:55:48 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-09-06 05:55:48 +0000 |
commit | 479c200deaeba6b342fcb51ecb9e988024e014a9 (patch) | |
tree | e18a56af0fbd60fe2e054a8f1a9d36406800b143 | |
parent | 0b64164fca054b2e66a717e118bdadfc34158bbf (diff) |
Notes
-rw-r--r-- | lib/libncurses/lib_kernel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libncurses/lib_kernel.c b/lib/libncurses/lib_kernel.c index bd81fe134dad6..a96cbfccdc8f5 100644 --- a/lib/libncurses/lib_kernel.c +++ b/lib/libncurses/lib_kernel.c @@ -44,12 +44,12 @@ int wattroff(WINDOW *win, chtype at) if (PAIR_NUMBER(at) == 0xff) /* turn off color */ win->_attrs &= ~at; else /* leave color alone */ - win->_attrs &= ~(at|~A_COLOR); + win->_attrs &= ~(at & ~A_COLOR); } else { if (PAIR_NUMBER(at) > 0x00) /* turn off color */ win->_attrs &= ~at; else /* leave color alone */ - win->_attrs &= ~(at|~A_COLOR); + win->_attrs &= ~(at & ~A_COLOR); } T(("new attribute is %s", _traceattr(win->_attrs))); return OK; |