From 28ed7772c6ab835e1ba54dfcefe8df2e30c67bd7 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 7 Jun 2017 14:44:16 -0700 Subject: [PATCH] Select last character in bottom right in select all --- src/SelectionModel.test.ts | 2 +- src/SelectionModel.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SelectionModel.test.ts b/src/SelectionModel.test.ts index 621026e..489ac8c 100644 --- a/src/SelectionModel.test.ts +++ b/src/SelectionModel.test.ts @@ -99,7 +99,7 @@ describe('SelectionManager', () => { describe('finalSelectionEnd', () => { it('should return the end of the buffer if select all is active', () => { model.isSelectAllActive = true; - assert.deepEqual(model.finalSelectionEnd, [79, 1]); + assert.deepEqual(model.finalSelectionEnd, [80, 1]); }); it('should return null if there is no selection start', () => { assert.equal(model.finalSelectionEnd, null); diff --git a/src/SelectionModel.ts b/src/SelectionModel.ts index f6491ae..fc5e513 100644 --- a/src/SelectionModel.ts +++ b/src/SelectionModel.ts @@ -64,7 +64,7 @@ export class SelectionModel { */ public get finalSelectionEnd(): [number, number] { if (this.isSelectAllActive) { - return [this._terminal.cols - 1, this._terminal.ybase + this._terminal.rows - 1]; + return [this._terminal.cols, this._terminal.ybase + this._terminal.rows - 1]; } if (!this.selectionStart) {