Skip to content

Commit

Permalink
Merge branch 'master' into remove_unused_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jul 14, 2017
2 parents 2275601 + 1b6ce6d commit 5140c83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2234,6 +2234,11 @@ Terminal.prototype.handler = function(data) {
return;
}

// Clear the selection if the selection manager is available and has an active selection
if (this.selectionManager && this.selectionManager.hasSelection) {
this.selectionManager.clearSelection();
}

// Input is being sent to the terminal, the terminal should focus the prompt.
if (this.ybase !== this.ydisp) {
this.scrollToBottom();
Expand Down

0 comments on commit 5140c83

Please sign in to comment.