diff --git a/src/xterm.js b/src/xterm.js index 7f01e2a4..8fc154fe 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1135,9 +1135,9 @@ width = this.cols; y = start; - if (end >= this.lines.length) { + if (end >= this.rows.length) { this.log('`end` is too large. Most likely a bad CSR.'); - end = this.lines.length - 1; + end = this.rows.length - 1; } for (; y <= end; y++) {