Skip to content

Commit

Permalink
Merge pull request #1468 from xconverge/fix-visual-block
Browse files Browse the repository at this point in the history
Fix visual block mode not updating multicursor selection
  • Loading branch information
xconverge authored Apr 4, 2017
2 parents dacaee5 + 7749e01 commit 2857eb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 2857eb6

Please sign in to comment.