diff --git a/lib/utils/selection.js b/lib/utils/selection.js index e99a207a..fe655943 100644 --- a/lib/utils/selection.js +++ b/lib/utils/selection.js @@ -11,6 +11,9 @@ exports.extend = function (terminal) { // Test if focusNode exist and nodeName is #text if (sel.focusNode && sel.focusNode.nodeName === '#text') { terminal.screen_.expandSelection(sel); + if (terminal.copyOnSelect) { + terminal.copyStringToClipboard(); + } } };