Fix selection on bottom right char when mouse goes outside viewport

Part of #1029
This commit is contained in:
Daniel Imms
2017-11-05 12:18:59 -08:00
parent dbec3a32f8
commit 8478aa7a51
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -495,7 +495,7 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
// If the cursor was above or below the viewport, make sure it's at the
// start or end of the viewport respectively.
if (this._dragScrollAmount > 0) {
this._model.selectionEnd[0] = this._terminal.cols - 1;
this._model.selectionEnd[0] = this._terminal.cols;
} else if (this._dragScrollAmount < 0) {
this._model.selectionEnd[0] = 0;
}