From a8392e0ebb314aae66a92e7ee301046a9c5123aa Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 29 Jul 2018 00:20:35 -0400 Subject: [PATCH] Fix fugitive#Real() with non-Fugitive URL --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 337f25d..cc113f2 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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