diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2014-07-04 18:35:04 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2014-07-04 18:35:04 +0900 |
| commit | 89298a8d23cb6ce815ca37fdc2272242da99c9d0 (patch) | |
| tree | 74fb125762f7a1a5f4b9833e87752a4f4223fb68 /plugin/fzf.vim | |
| parent | 91401514ab68c3903305bfbb8f731ca8bf3e1c59 (diff) | |
| download | fzf-89298a8d23cb6ce815ca37fdc2272242da99c9d0.tar.gz | |
[vim] Do not print error message on exit status 1
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 42c89fca..1b7a5600 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -137,8 +137,11 @@ function! s:execute(dict, command, temps) execute 'silent !'.command redraw! if v:shell_error - echohl Error - echo 'Error running ' . command + " Do not print error message on exit status 1 + if v:shell_error > 1 + echohl ErrorMsg + echo 'Error running ' . command + endif return [] else return s:callback(a:dict, a:temps, 0) |
