From eedfd2a570b608e1609af97d49018cb8bf3b5e37 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 28 Sep 2019 11:14:30 -0400 Subject: [PATCH] Don't show tags warning when editing commit message --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7588aa4..4716578 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5895,7 +5895,7 @@ function! fugitive#Init() abort exe s:DoAutocmd('User FugitiveBoot') endif 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) if filereadable(actualdir . 'tags') let s:tags_warning = 1