revert to local const buffer

This commit is contained in:
Jörg Breitbart
2018-04-23 22:06:24 +02:00
parent 13d4ab6f8d
commit 6ff4ae7194
2 changed files with 19 additions and 17 deletions
+4 -2
View File
@@ -34,7 +34,6 @@ export class Buffer implements IBuffer {
public savedY: number;
public savedX: number;
public markers: Marker[] = [];
public lines: CircularList<LineData>;
/**
* Create a new Buffer.
@@ -49,6 +48,10 @@ export class Buffer implements IBuffer {
this.clear();
}
public get lines(): CircularList<LineData> {
return this._lines;
}
public get hasScrollback(): boolean {
return this._hasScrollback && this.lines.maxLength > this._terminal.rows;
}
@@ -95,7 +98,6 @@ export class Buffer implements IBuffer {
this.y = 0;
this.x = 0;
this._lines = new CircularList<LineData>(this._getCorrectBufferLength(this._terminal.rows));
this.lines = this._lines;
this.scrollTop = 0;
this.scrollBottom = this._terminal.rows - 1;
this.setupTabStops();