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

Error when writing an invalid RGB color #151

Open
Aster89 opened this issue May 1, 2021 · 1 comment · May be fixed by #187
Open

Error when writing an invalid RGB color #151

Aster89 opened this issue May 1, 2021 · 1 comment · May be fixed by #187
Labels

Comments

@Aster89
Copy link

Aster89 commented May 1, 2021

It happened as a typo that I wrote

  background-color: rgb(100,100,256);

and I got this error

Error detected while processing CursorMoved Autocommands for "<buffer=1>"..function <SNR>88_parse_screen[4]..<SNR>88_create_syn_match[34]..<SNR>88_create_highlight:                                                                                    
line    6:
E254: Cannot allocate colour #6464100
Press ENTER or type command to continue

I understand the reason of the error, but is it intended that the plugin actually errors out (allowing a multiple lines error that pushes the whole screen up) rather than just echoing a short message and giving up on coloring the color string?

@ap ap added the bug label May 1, 2021
@ap
Copy link
Owner

ap commented May 1, 2021

It’s missing an overflow check.

adamhotep added a commit to adamhotep/vim-css-color that referenced this issue May 26, 2023
@adamhotep adamhotep linked a pull request May 29, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants