From 7316baffdda4b644c54422472fc07bc38097c4b0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 10 Jul 2018 17:28:00 -0400 Subject: [PATCH] Fix typo in regexp --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 22a6ad6..081dfa7 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -660,7 +660,7 @@ endfunction function! s:buffer_type(...) dict abort if self.getvar('fugitive_type') != '' let type = self.getvar('fugitive_type') - elseif fnamemodify(self.spec(),':p') =~# '.\git/refs/\|\.git/\w*HEAD$' + elseif fnamemodify(self.spec(),':p') =~# '\.git/refs/\|\.git/\w*HEAD$' let type = 'head' elseif self.getline(1) =~ '^tree \x\{40\}$' && self.getline(2) == '' let type = 'tree'