From 7c9b87a3c3ef4b53425aca4a27e11a7359caae9f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 21 Oct 2017 18:06:41 -0400 Subject: [PATCH] Fix escaping in :Gblame Closes https://github.com/tpope/vim-fugitive/issues/952 --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 3f8e4f9..13efb30 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1995,7 +1995,7 @@ function! s:Blame(bang,line1,line2,count,args) abort let cmd += ['--contents', '-'] endif let cmd += ['--', s:buffer().path()] - let basecmd = escape(call(s:repo().git_command,cmd,s:repo()),'!') + let basecmd = escape(call(s:repo().git_command,cmd,s:repo()),'!%#') try let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd' if !s:repo().bare()