mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
FileType does not have <amatch> as path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user