From ff5b3e7d518c395ea78da5c00577e97ac223bb6f Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 28 Jan 2003 09:26:32 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@2740 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminal.c b/terminal.c index e3e8cc0f..6e056467 100644 --- a/terminal.c +++ b/terminal.c @@ -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; } -- 2.11.0