Add tests

This commit is contained in:
Daniel Imms
2018-07-26 12:23:34 -07:00
parent 48f1c4667a
commit 67d6ad57c3
4 changed files with 46 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ export class SelectionModel {
return null;
}
// Use the selection start if the end doesn't exist or they're reversed
// Use the selection start + length if the end doesn't exist or they're reversed
if (!this.selectionEnd || this.areSelectionValuesReversed()) {
const startPlusLength = this.selectionStart[0] + this.selectionStartLength;
if (startPlusLength > this._terminal.cols) {