diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-09-27 15:59:04 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-09-27 15:59:04 +0900 |
| commit | 545370d2b3d8e2a18166f8e4b5def10475769429 (patch) | |
| tree | 1541ab4d9b9e5c75d23f557c029e812113531778 /plugin | |
| parent | 86306dd45a71df4c5651b7895da4b31d49183ed6 (diff) | |
| parent | 59220c63a659205de1d2e39066701bb12baf91c5 (diff) | |
| download | fzf-545370d2b3d8e2a18166f8e4b5def10475769429.tar.gz | |
Merge branch 'jebaum-master'
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/fzf.vim | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 0cb444f8..4aefb4cd 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -235,14 +235,13 @@ function! s:execute(dict, command, temps) endif execute 'silent !'.command redraw! - if v:shell_error - " Do not print error message on exit status 1 (no match) or 130 (interrupt) - if index([1, 130], v:shell_error) < 0 - call s:error('Error running ' . command) - endif + if v:shell_error == 0 || v:shell_error == 1 + return s:callback(a:dict, a:temps) + " Do not print error message on exit status 130 (interrupt) + elseif v:shell_error == 130 return [] else - return s:callback(a:dict, a:temps) + call s:error('Error running ' . command) endif endfunction |
