Loosen regexp to allow for Windows paths

This commit is contained in:
Tim Pope
2018-07-16 21:43:10 -04:00
parent 8df073165a
commit c9d6c83470

View File

@@ -181,7 +181,7 @@ function! fugitive#Init() abort
call s:map('n', 'y<C-G>', ':call setreg(v:register, <SID>recall())<CR>', '<silent>')
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