mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-26 15:37:56 +00:00
Select last character in bottom right in select all
This commit is contained in:
parent
a047359f81
commit
28ed7772c6
@ -99,7 +99,7 @@ describe('SelectionManager', () => {
|
|||||||
describe('finalSelectionEnd', () => {
|
describe('finalSelectionEnd', () => {
|
||||||
it('should return the end of the buffer if select all is active', () => {
|
it('should return the end of the buffer if select all is active', () => {
|
||||||
model.isSelectAllActive = true;
|
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', () => {
|
it('should return null if there is no selection start', () => {
|
||||||
assert.equal(model.finalSelectionEnd, null);
|
assert.equal(model.finalSelectionEnd, null);
|
||||||
|
|||||||
@ -64,7 +64,7 @@ export class SelectionModel {
|
|||||||
*/
|
*/
|
||||||
public get finalSelectionEnd(): [number, number] {
|
public get finalSelectionEnd(): [number, number] {
|
||||||
if (this.isSelectAllActive) {
|
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) {
|
if (!this.selectionStart) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user