Make sure selection manager is available (only after open() was called)
This commit is contained in:
+3
-3
@@ -2234,9 +2234,9 @@ Terminal.prototype.handler = function(data) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear the selection
|
// Clear the selection if the selection manager is available and has an active selection
|
||||||
if (this.hasSelection()) {
|
if (this.selectionManager && this.selectionManager.hasSelection) {
|
||||||
this.clearSelection();
|
this.selectionManager.clearSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Input is being sent to the terminal, the terminal should focus the prompt.
|
// Input is being sent to the terminal, the terminal should focus the prompt.
|
||||||
|
|||||||
Reference in New Issue
Block a user