mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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.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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user