Merge pull request #1468 from xconverge/fix-visual-block

Fix visual block mode not updating multicursor selection
This commit is contained in:
Sean Kelly 2017-04-04 11:52:09 -07:00 committed by GitHub
commit 2857eb6f11

View File

@ -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)));