mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Cleaner error on -z command failure
This commit is contained in:
@@ -459,7 +459,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:NullError(...) abort
|
function! s:NullError(...) abort
|
||||||
let [out, exec_error] = s:SystemError(call('fugitive#Prepare', a:000))
|
let [out, exec_error] = s:SystemError(call('fugitive#Prepare', a:000))
|
||||||
return [exec_error ? [] : split(out, "\1"), exec_error ? out : '', exec_error]
|
return [exec_error ? [] : split(out, "\1"), exec_error ? substitute(out, "\n$", "", "") : '', exec_error]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:TreeChomp(...) abort
|
function! s:TreeChomp(...) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user