mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 04:34:39 +08:00
Strip backslashes on expansion
Closes https://github.com/tpope/vim-fugitive/issues/975
This commit is contained in:
1 parent
de6c05720c
commit
5032d9ee72
1 file changed
+3
-1
+3
-1
@@ -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