Don't trust CSApprox_loaded
Capitalized variables can end up in session files, folks. Don't use them for include guards.
This commit is contained in:
parent
2c8d15a790
commit
e272080f0d
@ -2197,7 +2197,7 @@ function! s:BlameSyntax() abort
|
|||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
let seen[hash] = 1
|
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))
|
\ && 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 [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)
|
let color = csapprox#per_component#Approximate(r, g, b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user