]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/xterm.js
oops, this is a function
[mirror_xterm.js.git] / src / xterm.js
index b0ed3eb7ba231069a1365a2769ba2cd2dce8f054..bf7c95d45962081c5d83a98eb88d21e793cb76c0 100644 (file)
@@ -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);