FileType does not have <amatch> as path

This commit is contained in:
Tim Pope 2010-08-03 15:22:05 -04:00
parent 6ea8f2a2ae
commit ea89d6ec12

View File

@ -145,7 +145,7 @@ endfunction
augroup fugitive augroup fugitive
autocmd! autocmd!
autocmd BufNewFile,BufReadPost * call s:Detect(expand('<amatch>:p')) 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 VimEnter * if expand('<amatch>')==''|call s:Detect(getcwd())|endif
autocmd BufWinLeave * execute getwinvar(+winnr(), 'fugitive_restore') autocmd BufWinLeave * execute getwinvar(+winnr(), 'fugitive_restore')
augroup END augroup END