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