mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-11 12:25:59 +03:00
Merge pull request #1468 from xconverge/fix-visual-block
Fix visual block mode not updating multicursor selection
This commit is contained in:
commit
2857eb6f11
@ -602,7 +602,8 @@ export class ModeHandler implements vscode.Disposable {
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.selections.length !== this.vimState.allCursors.length || this.vimState.isMultiCursor) {
|
||||
if ((e.selections.length !== this.vimState.allCursors.length || this.vimState.isMultiCursor) &&
|
||||
this.vimState.currentMode !== ModeName.VisualBlock) {
|
||||
// Number of selections changed, make sure we know about all of them still
|
||||
this.vimState.allCursors = vscode.window.activeTextEditor!.selections.map(x =>
|
||||
new Range(Position.FromVSCodePosition(x.start), Position.FromVSCodePosition(x.end)));
|
||||
|
Loading…
Reference in New Issue
Block a user