Fix SelectionManager initializing

This commit is contained in:
Paris Kasidiaris
2017-07-16 03:47:15 +03:00
committed by Paris Kasidiaris
parent 2cda163bcf
commit d222eec9f7
+3 -1
View File
@@ -710,7 +710,9 @@ Terminal.prototype.open = function(parent, focus) {
this.viewport = new Viewport(this, this.viewportElement, this.viewportScrollArea, this.charMeasure);
this.renderer = new Renderer(this);
this.selectionManager = new SelectionManager(this, this.buffer.lines, this.rowContainer, this.charMeasure);
this.selectionManager = new SelectionManager(
this, this.buffer.lines, this.rowContainer, this.charMeasure
);
this.selectionManager.on('refresh', data => {
this.renderer.refreshSelection(data.start, data.end);
});