diff options
author | ache <ache@FreeBSD.org> | 1994-11-27 05:23:52 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-27 05:23:52 +0000 |
commit | 32a635775a0f2efd45765d3ff4b21ea5d224ae1c (patch) | |
tree | e67aae797fb8c72b7f5719913a4f889ffae37542 /lib/libncurses/lib_doupdate.c | |
parent | 0195ab27b479798e963ac35c0561fe4e0e43e334 (diff) | |
download | FreeBSD-src-32a635775a0f2efd45765d3ff4b21ea5d224ae1c.zip FreeBSD-src-32a635775a0f2efd45765d3ff4b21ea5d224ae1c.tar.gz |
Fix many duplicated attribute sets
Diffstat (limited to 'lib/libncurses/lib_doupdate.c')
-rw-r--r-- | lib/libncurses/lib_doupdate.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libncurses/lib_doupdate.c b/lib/libncurses/lib_doupdate.c index 0900ff2..e729a47 100644 --- a/lib/libncurses/lib_doupdate.c +++ b/lib/libncurses/lib_doupdate.c @@ -147,7 +147,7 @@ sigaction_t act, oact; /* perhaps we should turn attributes off here */ - if (!(curscr->_attrs & A_NORMAL)) + if (curscr->_attrs != A_NORMAL) vidattr(curscr->_attrs = A_NORMAL); fflush(SP->_ofp); @@ -179,7 +179,7 @@ int i = 0, j = 0; int lastNonBlank; T(("ClrUpdate(%x) called", scr)); - if (back_color_erase) { + if (back_color_erase && curscr->_attrs != A_NORMAL) { T(("back_color_erase, turning attributes off")); vidattr(curscr->_attrs = A_NORMAL); } @@ -308,7 +308,7 @@ int attrchanged = 0; lastChar = columns - 1; GoTo(lineno, firstChar); if(clr_eol) { - if (back_color_erase) { + if (back_color_erase && curscr->_attrs != A_NORMAL) { T(("back_color_erase, turning attributes off")); vidattr(curscr->_attrs = A_NORMAL); } @@ -378,7 +378,7 @@ int attrchanged = 0; if (attrchanged) { GoTo(lineno, firstChar); - if (back_color_erase) { + if (back_color_erase && curscr->_attrs != A_NORMAL) { T(("back_color_erase, turning attributes off")); vidattr(curscr->_attrs = A_NORMAL); } @@ -412,7 +412,7 @@ int attrchanged = 0; if((nLastChar == firstChar) && clr_eol) { GoTo(lineno, firstChar); - if (back_color_erase) { + if (back_color_erase && curscr->_attrs != A_NORMAL) { T(("back_color_erase, turning attributes off")); vidattr(curscr->_attrs = A_NORMAL); } @@ -558,7 +558,7 @@ static void DelChar(int count) { T(("DelChar(%d) called", count)); - if (back_color_erase) { + if (back_color_erase && curscr->_attrs != A_NORMAL) { T(("back_color_erase, turning attributes off")); vidattr(curscr->_attrs = A_NORMAL); } |