From e272080f0df44ef6cc7c47c6ef745251096d91e1 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 26 May 2017 19:34:15 -0400 Subject: [PATCH] Don't trust CSApprox_loaded Capitalized variables can end up in session files, folks. Don't use them for include guards. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 9cda172..b962a7a 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2197,7 +2197,7 @@ function! s:BlameSyntax() abort continue endif let seen[hash] = 1 - if &t_Co > 16 && exists('g:CSApprox_loaded') + if &t_Co > 16 && get(g:, 'CSApprox_loaded') && !empty(findfile('autoload/csapprox/per_component.vim', escape(&rtp, ' '))) \ && empty(get(s:hash_colors, hash)) let [s, r, g, b; __] = map(matchlist(hash, '\(\x\x\)\(\x\x\)\(\x\x\)'), 'str2nr(v:val,16)') let color = csapprox#per_component#Approximate(r, g, b)