From 5551853f34ec31542038d61e4fb7afe621a85457 Mon Sep 17 00:00:00 2001 From: Elias Norrby Date: Thu, 8 Jul 2021 13:00:10 +0200 Subject: [PATCH] Fix ternary expression in s:NullError Only the leading part was removed in ae6f84a. Fixes #1785 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 1630081..09d470d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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)