diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 22e01ff..8655bac 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -181,7 +181,7 @@ function! fugitive#Init() abort call s:map('n', 'y', ':call setreg(v:register, recall())', '') endif let buffer = fugitive#buffer() - if expand('%:p') =~# '://' + if expand('%:p') =~# ':[\/][\/]' call buffer.setvar('&path', s:sub(buffer.getvar('&path'), '^\.%(,|$)', '')) endif if stridx(buffer.getvar('&tags'), escape(b:git_dir, ', ')) == -1