Skip to content

Commit

Permalink
fix leftover BufferLineConstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed Jan 5, 2019
1 parent 90950e2 commit 6581eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class Buffer implements IBuffer {

this.scrollBottom = newRows - 1;

if (this._hasScrollback && this._bufferLineConstructor === BufferLine) {
if (this._hasScrollback) {
this._reflow(newCols);

// Trim the end of the line off if cols shrunk
Expand Down Expand Up @@ -343,7 +343,7 @@ export class Buffer implements IBuffer {
if (this.ybase === 0) {
this.y--;
// Add an extra row at the bottom of the viewport
this.lines.push(new this._bufferLineConstructor(newCols, FILL_CHAR_DATA));
this.lines.push(new BufferLine(newCols, FILL_CHAR_DATA));
} else {
if (this.ydisp === this.ybase) {
this.ydisp--;
Expand Down

0 comments on commit 6581eb7

Please sign in to comment.