Merge pull request #117 from Tyriar/86_protect_max_refresh

Bound refresh max rows to this.rows not this.lines
This commit is contained in:
Paris Kasidiaris
2016-06-14 11:11:04 +03:00
committed by GitHub
+2 -2
View File
@@ -1216,9 +1216,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++) {