Skip to content
Myr

[vim] handle exit status 1 properly (#359)

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

authored by James Baumgarten · committed by James Baumgarten · parent 86306dd · Browse files · 1 file+5 added−6 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+5 added−6 removed

  • other:+5 added−6 removed

1 file+5 added−6 removed

modified:plugin/fzf.vim+5 added-6 removed
233 unmodified lines
234 let command = escaped235 endif236 execute 'silent !'.command237 redraw!238 if v:shell_error239 " Do not print error message on exit status 1 (no match) or 130 (interrupt)240 if index([1, 130], v:shell_error) < 0241 call s:error('Error running ' . command)242 endif238 if v:shell_error == 0 || v:shell_error == 1239 return s:callback(a:dict, a:temps)240 " Do not print error message on exit status 130 (interrupt)241 elseif v:shell_error == 130242 return []243 else245 return s:callback(a:dict, a:temps)244 call s:error('Error running ' . command)245 endif246endfunction247248function! s:execute_tmux(dict, command, temps)
188 unmodified lines