g0xA52A2A/zenchrome.vim

The output of highlight is dependant on the window size

g0xA52A2A opened this issue · 1 comments

If there are insufficient columns to list all attributes of a highlight group on one line the output will split the output over multiple lines. This happens not only interactively but also when we call highlight with execute() or capture the output with redir.

This is not accounted for and as such depending on the window size there may be errors encountered such as the following.

E684: list index out of range: 0
...
W18: Invalid character in group name

Given I created this out of frustration of Vim setting so many things implicitly finding another new and unexpected behavior is a real downer. I'm not inclined to fix this quickly unless I find an elegant way to handle this, further updates will be made to this ticket.

Fixed with commit a0ab9b9