From 1fd5bcc9fa91b1a8a4a8d0b002773dfd0f6d5d32 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 22 Nov 2004 13:49:12 +0000 Subject: [PATCH] Fix typo in term_size(), flagged by a Dr Watson log from Temme Rainer. [originally from svn r4881] --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 25c2cfda..f8d92dce 100644 --- a/terminal.c +++ b/terminal.c @@ -1433,7 +1433,7 @@ void term_size(Terminal *term, int newrows, int newcols, int newsavelines) for (i = 0; i < newrows; i++) { newdisp[i] = newline(term, newcols, FALSE); for (j = 0; j < newcols; j++) - newdisp[i]->chars[i].attr = ATTR_INVALID; + newdisp[i]->chars[j].attr = ATTR_INVALID; } if (term->disptext) { for (i = 0; i < oldrows; i++)