mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Loosen autocommand patterns for fugitive:// URLs
Allow for potential upcoming changes to the format.
This commit is contained in:
@@ -697,15 +697,15 @@ augroup fugitive
|
|||||||
\ silent doautocmd BufNewFile |
|
\ silent doautocmd BufNewFile |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
autocmd BufReadCmd fugitive://*//* nested exe fugitive#BufReadCmd() |
|
autocmd BufReadCmd fugitive://* nested exe fugitive#BufReadCmd() |
|
||||||
\ if &path =~# '^\.\%(,\|$\)' |
|
\ if &path =~# '^\.\%(,\|$\)' |
|
||||||
\ let &l:path = substitute(&path, '^\.,\=', '', '') |
|
\ let &l:path = substitute(&path, '^\.,\=', '', '') |
|
||||||
\ endif
|
\ endif
|
||||||
autocmd BufWriteCmd fugitive://*//[0-3]/* nested exe fugitive#BufWriteCmd()
|
autocmd BufWriteCmd fugitive://* nested exe fugitive#BufWriteCmd()
|
||||||
autocmd FileReadCmd fugitive://*//* nested exe fugitive#FileReadCmd()
|
autocmd FileReadCmd fugitive://* nested exe fugitive#FileReadCmd()
|
||||||
autocmd FileWriteCmd fugitive://*//[0-3]/* nested exe fugitive#FileWriteCmd()
|
autocmd FileWriteCmd fugitive://* nested exe fugitive#FileWriteCmd()
|
||||||
if exists('##SourceCmd')
|
if exists('##SourceCmd')
|
||||||
autocmd SourceCmd fugitive://*//* nested exe fugitive#SourceCmd()
|
autocmd SourceCmd fugitive://* nested exe fugitive#SourceCmd()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
autocmd User Flags call Hoist('buffer', function('FugitiveStatusline'))
|
autocmd User Flags call Hoist('buffer', function('FugitiveStatusline'))
|
||||||
|
|||||||
Reference in New Issue
Block a user