mirror of
https://github.com/junegunn/fzf
synced 2024-11-16 12:12:48 +00:00
[vim] Do not print error message on exit status 1
This commit is contained in:
parent
91401514ab
commit
89298a8d23
@ -137,8 +137,11 @@ function! s:execute(dict, command, temps)
|
|||||||
execute 'silent !'.command
|
execute 'silent !'.command
|
||||||
redraw!
|
redraw!
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
echohl Error
|
" Do not print error message on exit status 1
|
||||||
|
if v:shell_error > 1
|
||||||
|
echohl ErrorMsg
|
||||||
echo 'Error running ' . command
|
echo 'Error running ' . command
|
||||||
|
endif
|
||||||
return []
|
return []
|
||||||
else
|
else
|
||||||
return s:callback(a:dict, a:temps, 0)
|
return s:callback(a:dict, a:temps, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user