Skip to content
Myr

[vim] Fix callback not run on exit code 1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent cf2242a · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:plugin/fzf.vim+3 added-3 removed
725 unmodified lines
726 endif727 let exit_status = v:shell_error728 redraw!729 let lines = s:collect(a:temps)730 return s:exit_handler(a:dict, exit_status, command) == 0 ? lines : []730 return s:exit_handler(a:dict, exit_status, command) < 2 ? lines : []731endfunction732733function! s:execute_tmux(dict, command, temps) abort734 let command = a:command
6 unmodified lines
741 call system(command)742 let exit_status = v:shell_error743 redraw!744 let lines = s:collect(a:temps)745 return s:exit_handler(a:dict, exit_status, command) == 0 ? lines : []745 return s:exit_handler(a:dict, exit_status, command) < 2 ? lines : []746endfunction747748function! s:calc_size(max, val, dict)749 let val = substitute(a:val, '^\~', '', '')
157 unmodified lines
907 execute self.winrest908 endif909910 let lines = s:collect(self.temps)911 if s:exit_handler(self.dict, a:code, self.command, 1) != 0911 if s:exit_handler(self.dict, a:code, self.command, 1) >= 2912 return913 endif914915 call s:pushd(self.dict)
183 unmodified lines