mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -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
|
else
|
||||||
let file = a:rev
|
let file = a:rev
|
||||||
endif
|
endif
|
||||||
return s:sub(s:sub(file,'\%$',self.path()),'\.\@<=/$','')
|
return s:sub(substitute(file,
|
||||||
|
\ '%$\|\\\([[:punct:]]\)','\=len(submatch(1)) ? submatch(1) : self.path()','g'),
|
||||||
|
\ '\.\@<=/$','')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:buffer_containing_commit() dict abort
|
function! s:buffer_containing_commit() dict abort
|
||||||
|
|||||||
Reference in New Issue
Block a user