mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 15:23:51 -05: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
|
||||
let [out, exec_error] = s:SystemError(call('fugitive#Prepare', a:000))
|
||||
if exec_error
|
||||
return [[], substitute(out, "\n$", "", "") : '', exec_error]
|
||||
return [[], substitute(out, "\n$", "", ""), exec_error]
|
||||
else
|
||||
let list = split(out, "\1", 1)
|
||||
call remove(list, -1)
|
||||
|
||||
Reference in New Issue
Block a user