From c1f41f98221d26b0d3e3bcd545c5980876867928 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 19 May 2001 11:33:03 +0000 Subject: [PATCH] Terminal fix from RDB: probably didn't mean to compare a Y value with a column count! [originally from svn r1133] --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index b01ef80d..80d66dc2 100644 --- a/terminal.c +++ b/terminal.c @@ -745,7 +745,7 @@ static void erase_lots(int line_only, int from_begin, int to_end) ldata = lineptr(start.y); while (poslt(start, end)) { - if (start.y == cols && !erase_lattr) + if (start.x == cols && !erase_lattr) ldata[start.x] &= ~LATTR_WRAPPED; else ldata[start.x] = erase_char;