mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Fix fugitive#Real() with non-Fugitive URL
This commit is contained in:
@@ -511,7 +511,7 @@ function! fugitive#Real(url) abort
|
||||
let tree = s:Tree(dir)
|
||||
return s:PlatformSlash((len(tree) ? tree : dir) . file)
|
||||
endif
|
||||
let url = len(url) ? fnamemodify(a:url, ':p' . (a:url =~# '[\/]$' ? '' : ':s?[\/]$??')) : ''
|
||||
let url = len(a:url) ? fnamemodify(a:url, ':p' . (a:url =~# '[\/]$' ? '' : ':s?[\/]$??')) : ''
|
||||
if url =~# '^[\\/]\|^\a:[\\/]'
|
||||
return s:PlatformSlash(url)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user