diff --git a/lib/libcurses/refresh.c b/lib/libcurses/refresh.c index 93e80d34060d..d8860b4ab8f9 100644 --- a/lib/libcurses/refresh.c +++ b/lib/libcurses/refresh.c @@ -337,8 +337,8 @@ makech(win, wy) } /* Enter/exit standout mode as appropriate. */ - if (SO && (nsp->attr & __STANDOUT) != - (curscr->flags & __WSTANDOUT)) { + if (SO && !(nsp->attr & __STANDOUT) != + !(curscr->flags & __WSTANDOUT)) { if (nsp->attr & __STANDOUT) { tputs(SO, 0, __cputchar); curscr->flags |= __WSTANDOUT;