diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-09-18 10:25:07 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-09-18 10:25:07 +0900 |
| commit | ca19762e58533c6d7c7b25d7fcc41dc7ea898b3e (patch) | |
| tree | 11a5fafed5d71ce02014b5b96af5c806ed76d121 /plugin | |
| parent | 8764be07e2c97b667bd8437417e0a592082a918d (diff) | |
| download | fzf-ca19762e58533c6d7c7b25d7fcc41dc7ea898b3e.tar.gz | |
Exit status 130 when fzf is terminated by the user
Related: #345
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/fzf.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index e6aecf40..d9ced8ef 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -228,10 +228,11 @@ function! s:execute(dict, command, temps) execute 'silent !'.command redraw! if v:shell_error - " Do not print error message on exit status 1 - if v:shell_error > 2 + " Do not print error message on exit status 1 (no match) or 130 (interrupt) + if v:shell_error == 2 echohl ErrorMsg echo 'Error running ' . command + echohl None endif return [] else |
