mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -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)
|
let tree = s:Tree(dir)
|
||||||
return s:PlatformSlash((len(tree) ? tree : dir) . file)
|
return s:PlatformSlash((len(tree) ? tree : dir) . file)
|
||||||
endif
|
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:[\\/]'
|
if url =~# '^[\\/]\|^\a:[\\/]'
|
||||||
return s:PlatformSlash(url)
|
return s:PlatformSlash(url)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user