Fix SelectionManager initializing
This commit is contained in:
committed by
Paris Kasidiaris
parent
2cda163bcf
commit
d222eec9f7
+3
-1
@@ -710,7 +710,9 @@ Terminal.prototype.open = function(parent, focus) {
|
|||||||
|
|
||||||
this.viewport = new Viewport(this, this.viewportElement, this.viewportScrollArea, this.charMeasure);
|
this.viewport = new Viewport(this, this.viewportElement, this.viewportScrollArea, this.charMeasure);
|
||||||
this.renderer = new Renderer(this);
|
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.selectionManager.on('refresh', data => {
|
||||||
this.renderer.refreshSelection(data.start, data.end);
|
this.renderer.refreshSelection(data.start, data.end);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user