diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-07-28 01:41:11 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-07-28 01:41:11 +0900 |
commit | d6a99c0391b3859c5db9a0072b366caaf3278f18 (patch) | |
tree | c1edcb48cf95a2bf06e829d683138732a0585174 /plugin | |
parent | f787f7e65108938fda981abb71f4fdfb08fd9f31 (diff) |
[vim] v:shell_error can change around redraw!
Patch suggested by Mariusz AtamaĆczuk
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 53cb4cba..1dc29dc4 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -348,8 +348,9 @@ function! s:execute(dict, command, temps) abort let command = escaped endif execute 'silent !'.command + let exit_status = v:shell_error redraw! - return s:exit_handler(v:shell_error, command) ? s:collect(a:temps) : [] + return s:exit_handler(exit_status, command) ? s:collect(a:temps) : [] endfunction function! s:execute_tmux(dict, command, temps) abort @@ -360,8 +361,9 @@ function! s:execute_tmux(dict, command, temps) abort endif call system(command) + let exit_status = v:shell_error redraw! - return s:exit_handler(v:shell_error, command) ? s:collect(a:temps) : [] + return s:exit_handler(exit_status, command) ? s:collect(a:temps) : [] endfunction function! s:calc_size(max, val, dict) |