Make idlok works properly with back color erase.
This commit is contained in:
parent
bf517495c6
commit
b1affeefa7
@ -23,6 +23,10 @@ int y, touched = 0;
|
||||
temp = win->_line[win->_cury];
|
||||
|
||||
if (win->_idlok && (delete_line != NULL)) {
|
||||
if (back_color_erase) {
|
||||
T(("back_color_erase, turning attributes off"));
|
||||
vidattr(curscr->_attrs = A_NORMAL);
|
||||
}
|
||||
putp(delete_line);
|
||||
touched = 1;
|
||||
}
|
||||
@ -43,6 +47,6 @@ int y, touched = 0;
|
||||
}
|
||||
|
||||
for (end = &(temp[win->_maxx]); temp <= end; )
|
||||
*temp++ = ' ' | win->_attrs;
|
||||
*temp++ = ' ';
|
||||
return OK;
|
||||
}
|
||||
|
@ -85,6 +85,10 @@ chtype blank = ' ';
|
||||
|
||||
if (win->_maxx == columns && win->_idlok == TRUE) {
|
||||
|
||||
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) {
|
||||
|
@ -23,8 +23,12 @@ int y, touched = 0;
|
||||
temp = win->_line[win->_regbottom];
|
||||
|
||||
if (win->_idlok && (insert_line != NULL)) {
|
||||
putp(insert_line);
|
||||
touched = 1;
|
||||
if (back_color_erase) {
|
||||
T(("back_color_erase, turning attributes off"));
|
||||
vidattr(curscr->_attrs = A_NORMAL);
|
||||
}
|
||||
putp(insert_line);
|
||||
touched = 1;
|
||||
}
|
||||
|
||||
if (!touched) {
|
||||
@ -44,6 +48,6 @@ int y, touched = 0;
|
||||
win->_line[win->_cury] = temp;
|
||||
|
||||
for (end = &temp[win->_maxx]; temp <= end; temp++)
|
||||
*temp = ' ' | win->_attrs;
|
||||
*temp = ' ';
|
||||
return OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user