Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The output of highlight is dependant on the window size #1

Closed
g0xA52A2A opened this issue Mar 2, 2019 · 1 comment
Closed

The output of highlight is dependant on the window size #1

g0xA52A2A opened this issue Mar 2, 2019 · 1 comment

Comments

@g0xA52A2A
Copy link
Owner

g0xA52A2A commented Mar 2, 2019

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.

@g0xA52A2A
Copy link
Owner Author

Fixed with commit a0ab9b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant