chrisbra / Colorizer

color hex codes and color names
547 stars 30 forks source link

:ColorContrast: E121: Undefined variable: s:predefined_fgcolors #38

Closed blueyed closed 10 years ago

blueyed commented 10 years ago

I am seeing this error when calling :ColorContrast:

Error detected while processing function Colorizer#SwitchContrast:
line    8:
E121: Undefined variable: s:predefined_fgcolors
E116: Invalid arguments for function len(s:predefined_fgcolors['dark']) - 1
E15: Invalid expression: len(s:predefined_fgcolors['dark']) - 1
line   10:
E121: Undefined variable: g:colorizer_fgcontrast
line   11:
E121: Undefined variable: g:colorizer_fgcontrast
E15: Invalid expression: g:colorizer_fgcontrast < -1
line   14:
E121: Undefined variable: g:colorizer_fgcontrast
E15: Invalid expression: g:colorizer_fgcontrast

It seems like s:ColorInit needs to be called here.