commit e1d382b3e7e7491acea8546ef3bdfa9ce7e54fef (tree)
parent 3d67d23f47df759798bb7bf4c253d0d48b8fc02c
Author: Tim Pope <code@tpope.net>
Date: Sun, 19 Sep 2021 14:44:28 -0400
Fix resolution of scp style URLs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -1251,7 +1251,7 @@ function! s:UrlParse(url) abort
let scp_authority = matchstr(a:url, '^[^:/]\+\ze:\%(//\)\@!')
if len(scp_authority) && !(has('win32') && scp_authority =~# '^\a:[\/]')
return {'scheme': 'ssh', 'authority': scp_authority,
- \ 'path': strpart(url, len(scp_authority) + 1)}
+ \ 'path': strpart(a:url, len(scp_authority) + 1)}
endif
let match = matchlist(a:url, '^\([[:alnum:].+-]\+\)://\([^/]*\)\(/.*\)\=\%(#\|$\)')
if empty(match)