Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
berknam committed Jul 20, 2020
1 parent ec683e4 commit 901a086
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class ModeHandler implements vscode.Disposable {
return;
} else if (!selection.active.isEqual(selection.anchor)) {
this._logger.debug('Selections: Creating Visual Selection from command!');
this.vimState.selectionsChanged.ignoreIntermediateSelections = true;
// this.vimState.selectionsChanged.ignoreIntermediateSelections = true;
const active = Position.FromVSCodePosition(selection.active);
const anchor = Position.FromVSCodePosition(selection.anchor);
this.vimState.cursorStopPosition = active;
Expand All @@ -253,8 +253,9 @@ export class ModeHandler implements vscode.Disposable {
}
}
await this.setCurrentMode(Mode.Visual);
await this.updateView(this.vimState, { drawSelection: false, revealRange: false });
this.vimState.selectionsChanged.ignoreIntermediateSelections = false;
// await this.updateView(this.vimState, { drawSelection: false, revealRange: false });
await this.updateView(this.vimState);
// this.vimState.selectionsChanged.ignoreIntermediateSelections = false;
return;
}
}
Expand Down

0 comments on commit 901a086

Please sign in to comment.