mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Avoid presenting verbose command output as error
References https://github.com/tpope/vim-fugitive/issues/1643
This commit is contained in:
@@ -1641,7 +1641,7 @@ function! s:ReplaceCmd(cmd) abort
|
||||
let temp = tempname()
|
||||
let [err, exec_error] = s:TempCmd(temp, a:cmd)
|
||||
if exec_error
|
||||
call s:throw((len(err) ? err : filereadable(temp) ? join(readfile(temp), ' ') : 'unknown error running ' . a:cmd))
|
||||
call s:throw((len(err) ? err : 'unknown error running ' . a:cmd))
|
||||
endif
|
||||
setlocal noswapfile
|
||||
silent exe 'lockmarks keepalt 0read ++edit' s:fnameescape(temp)
|
||||
|
||||
Reference in New Issue
Block a user