This commit is contained in:
Daniel Imms
2018-03-19 11:01:26 -07:00
parent 387d5b056d
commit 0eeec13653
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -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;
-1
View File
@@ -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);
}