diff --git a/lib/utils/selection.js b/lib/utils/selection.js index fe655943..ddb15411 100644 --- a/lib/utils/selection.js +++ b/lib/utils/selection.js @@ -12,7 +12,7 @@ exports.extend = function (terminal) { if (sel.focusNode && sel.focusNode.nodeName === '#text') { terminal.screen_.expandSelection(sel); if (terminal.copyOnSelect) { - terminal.copyStringToClipboard(); + terminal.copyStringToClipboard(sel); } } };