mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Fix escaping in :Gblame
Closes https://github.com/tpope/vim-fugitive/issues/952
This commit is contained in:
@@ -1995,7 +1995,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
|||||||
let cmd += ['--contents', '-']
|
let cmd += ['--contents', '-']
|
||||||
endif
|
endif
|
||||||
let cmd += ['--', s:buffer().path()]
|
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
|
try
|
||||||
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
|
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
|
||||||
if !s:repo().bare()
|
if !s:repo().bare()
|
||||||
|
|||||||
Reference in New Issue
Block a user