Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee committed May 19, 2017
1 parent c4a7349 commit cbcc982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/actions/commands/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,7 @@ class CommandExitVisualMode extends BaseCommand {
class CommandVisualMode extends BaseCommand {
modes = [ModeName.Normal];
keys = ["v"];
isCompleteAction = false;

public async exec(position: Position, vimState: VimState): Promise<VimState> {
vimState.currentMode = ModeName.Visual;
Expand Down
2 changes: 1 addition & 1 deletion src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ export class ModeHandler implements vscode.Disposable {
}

ranRepeatableAction = (ranRepeatableAction && vimState.currentMode === ModeName.Normal) || this.createUndoPointForBrackets(vimState);
ranAction = ranAction && (vimState.currentMode !== ModeName.Insert);
ranAction = ranAction && (vimState.currentMode === ModeName.Normal || vimState.currentMode === ModeName.Visual);

// Record down previous action and flush temporary state
if (ranRepeatableAction) {
Expand Down

0 comments on commit cbcc982

Please sign in to comment.