diff --git a/src/xterm.js b/src/xterm.js index b0ed3eb7..bf7c95d4 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -517,7 +517,7 @@ Terminal.prototype.initGlobal = function() { on(this.element, 'copy', event => { // If mouse events are active it means the selection manager is disabled and // copy should be handled by the host program. - if (!term.hasSelection) { + if (!term.hasSelection()) { return; } copyHandler(event, term, this.selectionManager);