Skip to content

Commit

Permalink
Merge pull request #2347 from Chillee/2346
Browse files Browse the repository at this point in the history
Fixes #2346
  • Loading branch information
Chillee authored Feb 11, 2018
2 parents c8d6d34 + 805d3a4 commit 8255821
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/cmd_line/commandLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ export class CommandLine {
await cmd.execute(vimState.editor, vimState);
}
} catch (e) {
console.log(e);
if (e instanceof VimError) {
StatusBar.SetText(
`${e.toString()}. ${command}`,
vimState.currentMode,
vimState.isRecordingMacro,
true
);
if (e.code === ErrorCode.E492 && configuration.enableNeovim) {
await Neovim.command(vimState, command);
} else {
StatusBar.SetText(
`${e.toString()}. ${command}`,
vimState.currentMode,
vimState.isRecordingMacro,
true
);
}
} else {
util.showError(e.toString());
}
Expand Down

0 comments on commit 8255821

Please sign in to comment.