Fix selection extend when copyOnSelect is true (#975)

This commit is contained in:
Philippe Potvin 2016-11-09 21:03:08 -05:00 committed by Matheus Fernandes
parent 48dd4b5c1f
commit 26701d43b5

View file

@ -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();
}
}
};