mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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;
|
||||
}
|
||||
|
||||
// Clear the selection
|
||||
if (this.hasSelection()) {
|
||||
this.clearSelection();
|
||||
// Clear the selection if the selection manager is available and has an active selection
|
||||
if (this.selectionManager && this.selectionManager.hasSelection) {
|
||||
this.selectionManager.clearSelection();
|
||||
}
|
||||
|
||||
// Input is being sent to the terminal, the terminal should focus the prompt.
|
||||
|
||||
Reference in New Issue
Block a user