Fix issue with shift + mouse selection from bottom to top (#8281)

This commit is contained in:
liqiang 2023-03-11 02:06:33 +08:00 committed by GitHub
parent e5973bbc5b
commit 64f598299d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,7 +371,7 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
// If we prevented from clicking past eol but it is part of this selection, include the last char
if (this.lastClickWasPastEol) {
const newStart = new Position(selection.anchor.line, selection.anchor.character + 1);
this.vimState.editor.selection = new vscode.Selection(newStart, selection.end);
this.vimState.editor.selection = new vscode.Selection(newStart, selection.active);
this.vimState.cursorStartPosition = selectionStart;
this.lastClickWasPastEol = false;
}