From e1d382b3e7e7491acea8546ef3bdfa9ce7e54fef Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 19 Sep 2021 14:44:28 -0400 Subject: [PATCH] Fix resolution of scp style URLs --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 0ec64b1..80355d9 100644 --- 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)