mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Oh, _that's_ why that `if' had the sense it did. Good grief.
Apparently I used to rely on the fact that the same `erase_char' used to wipe parts of the screen was also a good value to use for resetting line attributes. Should now be more robust against future reorganisations of the ATTR_* bit fields. [originally from svn r2740]
This commit is contained in:
parent
6f43ffc13c
commit
54f033ace0
@ -975,8 +975,10 @@ static void erase_lots(Terminal *term,
|
|||||||
ldata = lineptr(start.y);
|
ldata = lineptr(start.y);
|
||||||
while (poslt(start, end)) {
|
while (poslt(start, end)) {
|
||||||
if (start.x == term->cols) {
|
if (start.x == term->cols) {
|
||||||
if (erase_lattr)
|
if (!erase_lattr)
|
||||||
ldata[start.x] &= ~(LATTR_WRAPPED | LATTR_WRAPPED2);
|
ldata[start.x] = ~(LATTR_WRAPPED | LATTR_WRAPPED2);
|
||||||
|
else
|
||||||
|
ldata[start.x] = LATTR_NORM;
|
||||||
} else {
|
} else {
|
||||||
ldata[start.x] = term->erase_char;
|
ldata[start.x] = term->erase_char;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user