Skip to content

Commit

Permalink
fix #1047
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Nov 17, 2016
1 parent 872ca4d commit a6eeb94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cmd_line/commands/quit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ export class QuitCommand extends node.CommandBase {
await vscode.commands.executeCommand('workbench.action.previousEditor');
}
}
}
}
}}
3 changes: 1 addition & 2 deletions src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1487,8 +1487,7 @@ export class ModeHandler implements vscode.Disposable {

// Draw search highlight

if (this.currentMode.name === ModeName.SearchInProgressMode ||
(Configuration.getInstance().hlsearch && vimState.searchState)) {
if (Configuration.getInstance().hlsearch && (this.currentMode.name === ModeName.SearchInProgressMode || vimState.searchState)) {
const searchState = vimState.searchState!;

rangesToDraw.push.apply(rangesToDraw, searchState.matchRanges);
Expand Down

0 comments on commit a6eeb94

Please sign in to comment.