mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-08-18 22:07:59 +08:00
Fix ternary expression in s:NullError
Only the leading part was removed in ae6f84a.
Fixes #1785
This commit is contained in:
@@ -554,7 +554,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))
|
||||||
if exec_error
|
if exec_error
|
||||||
return [[], substitute(out, "\n$", "", "") : '', exec_error]
|
return [[], substitute(out, "\n$", "", ""), exec_error]
|
||||||
else
|
else
|
||||||
let list = split(out, "\1", 1)
|
let list = split(out, "\1", 1)
|
||||||
call remove(list, -1)
|
call remove(list, -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user