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
george-b opened this issue Mar 2, 2019 · 1 comment
Closed

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

george-b opened this issue Mar 2, 2019 · 1 comment

Comments

@george-b
Copy link
Owner

@george-b george-b 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.

@george-b

This comment has been minimized.

Copy link
Owner Author

@george-b george-b commented Mar 3, 2019

Fixed with commit a0ab9b9

@george-b george-b closed this Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.