From 26701d43b5dcb82d6517e50b35773b4364ac092d Mon Sep 17 00:00:00 2001 From: Philippe Potvin Date: Wed, 9 Nov 2016 21:03:08 -0500 Subject: [PATCH] Fix selection extend when copyOnSelect is true (#975) --- lib/utils/selection.js | 3 +++ 1 file changed, 3 insertions(+) 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(); + } } };