Broken logic in PDC_lineattr() -- when removing the highlight, it needs

to be & instead of |.
This commit is contained in:
William McBrine
2006-08-20 20:25:16 +00:00
parent 44ddaa63c6
commit 52147de88b

View File

@@ -34,7 +34,7 @@
#undef PDC_leftline
#undef PDC_rightline
RCSID("$Id: border.c,v 1.29 2006/08/10 18:47:35 wmcbrine Exp $");
RCSID("$Id: border.c,v 1.30 2006/08/20 20:25:16 wmcbrine Exp $");
/*man-start**************************************************************
@@ -364,7 +364,7 @@ static int PDC_lineattr(WINDOW *win, int n, bool state, chtype attr)
if (state)
win->_y[n][win->_curx] |= attr;
else
win->_y[n][win->_curx] |= ~attr;
win->_y[n][win->_curx] &= ~attr;
if (win->_firstch[n] == _NO_CHANGE)
{