Guard against unloaded plugin in runtime files

This can happen if g:loaded_fugitive is set to disable the plugin, or in
a botched install.
This commit is contained in:
Tim Pope
2021-05-31 11:52:58 -04:00
parent 9871822dd5
commit 9eec18e76b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
if exists("b:did_ftplugin") || !exists('*fugitive#BlameFileType')
if exists("b:did_ftplugin") || !exists("*FugitiveGitDir")
finish
endif
let b:did_ftplugin = 1

View File

@@ -1,4 +1,4 @@
if exists("b:current_syntax")
if exists("b:current_syntax") || !exists("*FugitiveGitDir")
finish
endif