motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 9eec18e76bb42b152b53ef0e23eb64f01e153b8a (tree)
parent 9871822dd537c05ad805859cc217e9a40647e863
Author: Tim Pope <code@tpope.net>
Date:   Mon, 31 May 2021 11:52:58 -0400

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.

Diffstat:
Mftplugin/fugitiveblame.vim | 2+-
Msyntax/fugitiveblame.vim | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ftplugin/fugitiveblame.vim b/ftplugin/fugitiveblame.vim @@ -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 diff --git a/syntax/fugitiveblame.vim b/syntax/fugitiveblame.vim @@ -1,4 +1,4 @@ -if exists("b:current_syntax") +if exists("b:current_syntax") || !exists("*FugitiveGitDir") finish endif