Replace EventEmitter usage in BufferSet

This commit is contained in:
Daniel Imms
2019-04-02 11:35:20 -07:00
parent f8fb4da9f4
commit 60c2b20d68
3 changed files with 14 additions and 9 deletions
+1 -2
View File
@@ -140,7 +140,7 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
public initBuffersListeners(): void {
this._trimListener = this._terminal.buffer.lines.onTrim(amount => this._onTrim(amount));
this._terminal.buffers.on('activate', e => this._onBufferActivate(e));
this._terminal.buffers.onBufferActivate(e => this._onBufferActivate(e));
}
/**
@@ -336,7 +336,6 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
* @param amount The amount the buffer is being trimmed.
*/
private _onTrim(amount: number): void {
console.log('onTrim', amount);
const needsRefresh = this._model.onTrim(amount);
if (needsRefresh) {
this.refresh();