FileType does not have <amatch> as path
This commit is contained in:
parent
6ea8f2a2ae
commit
ea89d6ec12
@ -145,7 +145,7 @@ endfunction
|
||||
augroup fugitive
|
||||
autocmd!
|
||||
autocmd BufNewFile,BufReadPost * call s:Detect(expand('<amatch>:p'))
|
||||
autocmd FileType netrw call s:Detect(expand('<amatch>:p'))
|
||||
autocmd FileType netrw call s:Detect(expand('<afile>:p'))
|
||||
autocmd VimEnter * if expand('<amatch>')==''|call s:Detect(getcwd())|endif
|
||||
autocmd BufWinLeave * execute getwinvar(+winnr(), 'fugitive_restore')
|
||||
augroup END
|
||||
|
Loading…
x
Reference in New Issue
Block a user