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

[vim] Do not print error message on exit status 1

parent 91401514
No related branches found
No related tags found
No related merge requests found
......@@ -137,8 +137,11 @@ function! s:execute(dict, command, temps)
execute 'silent !'.command
redraw!
if v:shell_error
echohl Error
echo 'Error running ' . command
" Do not print error message on exit status 1
if v:shell_error > 1
echohl ErrorMsg
echo 'Error running ' . command
endif
return []
else
return s:callback(a:dict, a:temps, 0)
......
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