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