From c9d6c83470e7a3f847b62c2fdffd21e7181f9ca3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 16 Jul 2018 21:43:10 -0400 Subject: [PATCH] Loosen regexp to allow for Windows paths --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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