mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-11 12:25:59 +03:00
Merge branch 'master' into go-last-change
This commit is contained in:
commit
3348c4e108
@ -651,9 +651,15 @@ export class ModeHandler implements vscode.Disposable {
|
||||
) {
|
||||
// Number of selections changed, make sure we know about all of them still
|
||||
this.vimState.allCursors = e.textEditor.selections.map(
|
||||
x => new Range(Position.FromVSCodePosition(x.start), Position.FromVSCodePosition(x.end))
|
||||
sel =>
|
||||
new Range(
|
||||
// Adjust the cursor positions because cursors & selections don't match exactly
|
||||
sel.anchor.compareTo(sel.active) > 0
|
||||
? Position.FromVSCodePosition(sel.anchor).getLeft()
|
||||
: Position.FromVSCodePosition(sel.anchor),
|
||||
Position.FromVSCodePosition(sel.active)
|
||||
)
|
||||
);
|
||||
|
||||
await this.updateView(this.vimState);
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user