Kludge around inability to reference autoloads
This was causing problems when running in Vim 7.0 or 7.1. graywh bisected down to the commit introducing it for me, (d2c906) making it easy to spot the problem.
This commit is contained in:
parent
cdde3b6ade
commit
80b1bd5863
@ -410,6 +410,11 @@ function! s:FixupCtermInfo(highlights)
|
|||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" {>2} Kludge around inability to reference autoload functions
|
||||||
|
function! s:DefaultApproximator(...)
|
||||||
|
return call('csapprox#per_component#Approximate', a:000)
|
||||||
|
endfunction
|
||||||
|
|
||||||
" {>2} Set cterm colors for a highlight group
|
" {>2} Set cterm colors for a highlight group
|
||||||
" Given the information for a single highlight group (ie, the value of
|
" Given the information for a single highlight group (ie, the value of
|
||||||
" one of the items in s:Highlights() already normalized with s:FixupCtermInfo
|
" one of the items in s:Highlights() already normalized with s:FixupCtermInfo
|
||||||
@ -422,8 +427,7 @@ function! s:SetCtermFromGui(hl)
|
|||||||
|
|
||||||
" Set up the default approximator function, if needed
|
" Set up the default approximator function, if needed
|
||||||
if !exists("g:CSApprox_approximator_function")
|
if !exists("g:CSApprox_approximator_function")
|
||||||
let g:CSApprox_approximator_function =
|
let g:CSApprox_approximator_function = function("s:DefaultApproximator")
|
||||||
\ function("csapprox#per_component#Approximate")
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Clear existing highlights
|
" Clear existing highlights
|
||||||
|
Loading…
Reference in New Issue
Block a user