mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00: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);
|
||||
while (poslt(start, end)) {
|
||||
if (start.x == term->cols) {
|
||||
if (erase_lattr)
|
||||
ldata[start.x] &= ~(LATTR_WRAPPED | LATTR_WRAPPED2);
|
||||
if (!erase_lattr)
|
||||
ldata[start.x] = ~(LATTR_WRAPPED | LATTR_WRAPPED2);
|
||||
else
|
||||
ldata[start.x] = LATTR_NORM;
|
||||
} else {
|
||||
ldata[start.x] = term->erase_char;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user