Fixes #428
Related to #385
}
for (; y <= end; y++) {
+ console.log('this.ydisp: ' + this.ydisp);
row = y + this.ydisp;
line = this.lines.get(row);
// Compensate ybase and ydisp if lines has hit the maximum buffer size
if (this.lines.length === this.lines.maxLength) {
this.ybase--;
- this.ydisp--;
+ if (this.ydisp !== 0) {
+ this.ydisp--;
+ }
}
// Optimization: pushing is faster than splicing when they amount to the same behavior
this.lines.push(this.blankLine());