mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Fix typo in regexp
This commit is contained in:
@@ -660,7 +660,7 @@ endfunction
|
|||||||
function! s:buffer_type(...) dict abort
|
function! s:buffer_type(...) dict abort
|
||||||
if self.getvar('fugitive_type') != ''
|
if self.getvar('fugitive_type') != ''
|
||||||
let type = 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'
|
let type = 'head'
|
||||||
elseif self.getline(1) =~ '^tree \x\{40\}$' && self.getline(2) == ''
|
elseif self.getline(1) =~ '^tree \x\{40\}$' && self.getline(2) == ''
|
||||||
let type = 'tree'
|
let type = 'tree'
|
||||||
|
|||||||
Reference in New Issue
Block a user