Closed habamax closed 2 years ago
That code is for backward compatibility: it doesn't make sense for color schemes that are included with recent Vim. I do not plan to retain it for v3, but for now I may just add a setting to skip it.
FYI, this is the bug mentioned in the comment: https://groups.google.com/g/vim_dev/c/afPqwAFNdrU/m/nqh6tOM87QUJ.
Colortemplate's master has a new setting to fix this. Just set g:colortemplate_backward_compatibility=0
or add a declaration Colortemplate Options: backward_compatibility=0
in the template.
That background
option has been causing so much confusion…
Thank you @lifepillar.
should we amend check_colors
No, I think that check_colors
should complain about that.
The code Colortemplate generates (only under pretty specific circumstances—see check_bug_bg234()
in Colortemplate's source if you are curious) is a hack to work around the above mentioned bug, as I didn't find a better way.
Thx @lifepillar!
So check_colors has check 3 that doesn't like colortemplate output:
@lifepillar, do you think you would remove it at some point or should we amend check_colors itself?
@romainl fyi.