mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 10:44:53 +00:00
Fix many duplicated attribute sets
This commit is contained in:
parent
3d3c746818
commit
79f2f48ea8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4832
|
@ -24,10 +24,6 @@ int y, touched = 0;
|
|||
|
||||
if (win->_idlok && (delete_line != NULL)) {
|
||||
wrefresh(win);
|
||||
if (back_color_erase) {
|
||||
T(("back_color_erase, turning attributes off"));
|
||||
vidattr(curscr->_attrs = A_NORMAL);
|
||||
}
|
||||
putp(delete_line);
|
||||
touched = 1;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -86,10 +86,6 @@ chtype blank = ' ';
|
|||
if (win->_maxx == columns && win->_idlok == TRUE) {
|
||||
|
||||
wrefresh(win);
|
||||
if (back_color_erase) {
|
||||
T(("back_color_erase, turning attributes off"));
|
||||
vidattr(curscr->_attrs = A_NORMAL);
|
||||
}
|
||||
if (n > 0) {
|
||||
mvcur(-1, -1, win->_cury, 0);
|
||||
if (parm_insert_line) {
|
||||
|
|
|
@ -24,10 +24,6 @@ int y, touched = 0;
|
|||
|
||||
if (win->_idlok && (insert_line != NULL)) {
|
||||
wrefresh(win);
|
||||
if (back_color_erase) {
|
||||
T(("back_color_erase, turning attributes off"));
|
||||
vidattr(curscr->_attrs = A_NORMAL);
|
||||
}
|
||||
putp(insert_line);
|
||||
touched = 1;
|
||||
}
|
||||
|
|
|
@ -88,10 +88,6 @@ chtype blank = ' ';
|
|||
if (win->_maxx == columns && win->_regtop == 0 && win->_regbottom == lines) {
|
||||
|
||||
wrefresh(win);
|
||||
if (back_color_erase) {
|
||||
T(("back_color_erase, turning attributes off"));
|
||||
vidattr(curscr->_attrs = A_NORMAL);
|
||||
}
|
||||
/* at the moment this relies on scroll_reverse and scroll_forward
|
||||
or parm_rindex and parm_index.
|
||||
we should add idl support as an alternative */
|
||||
|
|
Loading…
Reference in a new issue