From c118dabb89b6e7e42383d4cf6f426e53bb45279c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 20 Jul 2018 22:06:22 -0400 Subject: [PATCH] Fix :Glog Closes https://github.com/tpope/vim-fugitive/issues/1059 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9c2bdf7..d37f932 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1516,7 +1516,7 @@ function! s:Log(cmd, line1, line2, ...) abort let dir = getcwd() try execute cd s:fnameescape(s:repo().tree()) - let &grepprg = escape(s:git_command() + join(map(cmd, '" ".s:shellesc(v:val)'), ''), '%#') + let &grepprg = escape(s:git_command() . join(map(cmd, '" ".s:shellesc(v:val)'), ''), '%#') let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f::%m,%-G%.%#' exe a:cmd finally