mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Don't show tags warning when editing commit message
This commit is contained in:
@@ -5895,7 +5895,7 @@ function! fugitive#Init() abort
|
|||||||
exe s:DoAutocmd('User FugitiveBoot')
|
exe s:DoAutocmd('User FugitiveBoot')
|
||||||
endif
|
endif
|
||||||
let dir = s:Dir()
|
let dir = s:Dir()
|
||||||
if stridx(&tags, escape(dir, ', ')) == -1 && &tags !~# '\.git' && !exists('s:tags_warning')
|
if &tags !~# '\.git' && @% !~# '\.git' && !exists('s:tags_warning')
|
||||||
let actualdir = fugitive#Find('.git/', dir)
|
let actualdir = fugitive#Find('.git/', dir)
|
||||||
if filereadable(actualdir . 'tags')
|
if filereadable(actualdir . 'tags')
|
||||||
let s:tags_warning = 1
|
let s:tags_warning = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user