mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Strip backslashes on expansion
Closes https://github.com/tpope/vim-fugitive/issues/975
This commit is contained in:
@@ -661,7 +661,9 @@ function! s:buffer_expand(rev) dict abort
|
||||
else
|
||||
let file = a:rev
|
||||
endif
|
||||
return s:sub(s:sub(file,'\%$',self.path()),'\.\@<=/$','')
|
||||
return s:sub(substitute(file,
|
||||
\ '%$\|\\\([[:punct:]]\)','\=len(submatch(1)) ? submatch(1) : self.path()','g'),
|
||||
\ '\.\@<=/$','')
|
||||
endfunction
|
||||
|
||||
function! s:buffer_containing_commit() dict abort
|
||||
|
||||
Reference in New Issue
Block a user