diff --git a/src/Buffer.ts b/src/Buffer.ts index ddefa8ed..c1cf3cc7 100644 --- a/src/Buffer.ts +++ b/src/Buffer.ts @@ -311,13 +311,11 @@ export class Buffer implements IBuffer { const marker = new Marker(y); this.markers.push(marker); marker.disposables.push(this._lines.addDisposableListener('trim', amount => { - console.log('trim!' + amount); marker.line -= amount; // The marker should be disposed when the line is trimmed from the buffer if (marker.line < 0) { marker.dispose(); } - // TODO: handle splice? })); marker.on('dispose', () => this._removeMarker(marker)); return marker; diff --git a/src/Terminal.ts b/src/Terminal.ts index 22aafdb4..b818de3d 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -1243,7 +1243,6 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT public scrollToLine(line: number): void { const scrollAmount = line - this.buffer.ydisp; - console.log('scrollAmount', scrollAmount); if (scrollAmount !== 0) { this.scrollLines(scrollAmount); }