Skip to content
Snippets Groups Projects
Commit 545370d2 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Merge branch 'jebaum-master'

parents 86306dd4 59220c63
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment