Fix select all with no start and include content below viewport

This commit is contained in:
Daniel Imms
2017-06-06 23:13:50 -07:00
parent 7147787441
commit 2b2431824f
3 changed files with 19 additions and 6 deletions
+4 -4
View File
@@ -52,12 +52,12 @@ export class SelectionModel {
* word selection and triple click line selection.
*/
public get finalSelectionEnd(): [number, number] {
if (!this.selectionStart) {
return null;
if (this.isSelectAllActive) {
return [this._terminal.cols - 1, this._terminal.ybase + this._terminal.rows - 1];
}
if (this.isSelectAllActive) {
return [this._terminal.cols - 1, this._terminal.ydisp + this._terminal.rows - 1];
if (!this.selectionStart) {
return null;
}
// Use the selection start if the end doesn't exist or they're reversed