motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit c9d6c83470e7a3f847b62c2fdffd21e7181f9ca3 (tree)
parent 8df073165a40d5299ca24f0c2fccf6401dff46fd
Author: Tim Pope <code@tpope.net>
Date:   Mon, 16 Jul 2018 21:43:10 -0400

Loosen regexp to allow for Windows paths

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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