]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Yet more fallout from the 16-colour changes. I think by this time
authorSimon Tatham <anakin@pobox.com>
Thu, 30 Jan 2003 13:39:24 +0000 (13:39 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 30 Jan 2003 13:39:24 +0000 (13:39 +0000)
these fiddly little changes are no longer bugs I introduced
recently, they're bugs that have been around all along and I've only
just smoked out by altering the ATTR_* definitions.

[originally from svn r2754]

terminal.c

index 8736a293f5823c235ba09ee055eb3335ed917fe2..7a21eeedc0d4384c052f4bc2b77a9c57c8af7737 100644 (file)
@@ -476,7 +476,7 @@ void term_size(Terminal *term, int newrows, int newcols, int newsavelines)
            line[0] = newcols;
            for (j = 0; j < newcols; j++)
                line[j + 1] = ERASE_CHAR;
-            line[newcols] = LATTR_NORM;
+            line[newcols + 1] = LATTR_NORM;
        }
        addpos234(term->screen, line, 0);
     }