Fix when scrollback limit is reached

This commit is contained in:
Daniel Imms
2016-12-21 15:43:04 -08:00
parent fd25bd7ca2
commit be56c72b5f
2 changed files with 4 additions and 20 deletions
-5
View File
@@ -93,11 +93,6 @@ export class CircularList<T> {
return this._array[this._getCyclicIndex(this._length-- - 1)];
}
public removeItemsFromStart(amount: number): void {
this._startIndex += this._length -amount;
this._length = amount;
}
// TODO: Warn there's no error handling and that this is a slow operation
public splice(start: number, deleteCount: number, ...items: T[]) {
if (deleteCount) {