oops, this is a function

This commit is contained in:
Joao Moreno
2017-07-25 11:30:03 +02:00
parent 9a30b98880
commit f872ced863
+1 -1
View 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);