Make buffer length = rows + scrollback

Fixes #847
This commit is contained in:
Daniel Imms
2017-08-06 13:28:58 -07:00
parent 687a5e2efb
commit 109d467b95
6 changed files with 26 additions and 36 deletions
+3
View File
@@ -25,6 +25,9 @@ export class CircularList<T> extends EventEmitter implements ICircularList<T> {
}
public set maxLength(newMaxLength: number) {
if (this.maxLength === newMaxLength) {
return;
}
// Reconstruct array, starting at index 0. Only transfer values from the
// indexes 0 to length.
let newArray = new Array<T>(newMaxLength);