From 53e1aa653e755993a2b9e6c8026bf36b59b9b224 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 7 Sep 1994 16:52:33 +0000 Subject: [PATCH] Bug fixed: when refreshing standouted line curses outputs SO for all characters Submitted by: ZW6T-KND@j.asahi-net.or.jp --- lib/libcurses/refresh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;