commit e250f9730ef3456ed46be57e54fe9cdb0e4b00c1 (tree)
parent c33d7fcb9f0f85046ea2931ad135f58587abcaab
Author: Tim Pope <code@tpope.net>
Date: Thu, 11 Jul 2019 17:33:21 -0400
Fix :Gblame on win32
Closes https://github.com/tpope/vim-fugitive/issues/1284
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -4262,7 +4262,7 @@ function! s:BlameCommand(line1, line2, range, count, bang, mods, reg, arg, args)
let current = line('.')
let temp = s:Resolve(temp)
let s:temp_files[s:cpath(temp)] = { 'dir': s:Dir(), 'filetype': 'fugitiveblame', 'args': cmd, 'bufnr': bufnr }
- exe 'keepalt' (a:bang ? 'split' : 'leftabove vsplit') . temp
+ exe 'keepalt' (a:bang ? 'split' : 'leftabove vsplit') s:fnameescape(temp)
let b:fugitive_blamed_bufnr = bufnr
let b:fugitive_type = 'blame'
let w:fugitive_leave = restore