]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
oops, this is a function
authorJoao Moreno <jomo@microsoft.com>
Tue, 25 Jul 2017 09:30:03 +0000 (11:30 +0200)
committerJoao Moreno <jomo@microsoft.com>
Tue, 25 Jul 2017 09:30:03 +0000 (11:30 +0200)
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);