Add & modify autocmd events FugitiveBoot & Fugitive

- Change old `Fugitive` to `FugitiveBoot`

- Put `Fugitive` at the end of fugitive#detect
This commit is contained in:
Quinn Strahl
2013-12-03 09:33:42 -05:00
committed by Tim Pope
parent 6b338bdbcf
commit 07c078c1be

View File

@@ -169,7 +169,7 @@ function! fugitive#detect(path)
endif endif
endif endif
if exists('b:git_dir') if exists('b:git_dir')
silent doautocmd User Fugitive silent doautocmd User FugitiveBoot
cnoremap <buffer> <expr> <C-R><C-G> fnameescape(<SID>recall()) cnoremap <buffer> <expr> <C-R><C-G> fnameescape(<SID>recall())
nnoremap <buffer> <silent> y<C-G> :call setreg(v:register, <SID>recall())<CR> nnoremap <buffer> <silent> y<C-G> :call setreg(v:register, <SID>recall())<CR>
let buffer = fugitive#buffer() let buffer = fugitive#buffer()
@@ -182,6 +182,7 @@ function! fugitive#detect(path)
call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags')) call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags'))
endif endif
endif endif
silent doautocmd User Fugitive
endif endif
endfunction endfunction