mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 03:23:46 -05:00
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:
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if exists("b:current_syntax")
|
||||
if exists("b:current_syntax") || !exists("*FugitiveGitDir")
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user