Fix remaining tests

This commit is contained in:
Daniel Imms
2019-06-08 17:12:18 -07:00
parent c44524b553
commit 291fc7368d
5 changed files with 19 additions and 12 deletions
+4 -2
View File
@@ -13,6 +13,7 @@ import { CellData } from 'common/buffer/BufferLine';
import { IDisposable } from 'xterm';
import { EventEmitter2, IEvent } from 'common/EventEmitter2';
import { ICharSizeService } from 'browser/services/Services';
import { IBufferService } from 'common/services/Services';
/**
* The number of pixels the mouse needs to be above or below the viewport in
@@ -117,12 +118,13 @@ export class SelectionManager implements ISelectionManager {
constructor(
private _terminal: ITerminal,
private _charSizeService: ICharSizeService
private _charSizeService: ICharSizeService,
bufferService: IBufferService
) {
this._initListeners();
this.enable();
this._model = new SelectionModel(_terminal);
this._model = new SelectionModel(_terminal, bufferService);
this._activeSelectionMode = SelectionMode.NORMAL;
}