mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Make idlok works properly with back color erase.
This commit is contained in:
parent
6128633879
commit
06fc741b2a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4830
@ -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