Skip to content

Fix shade_color passing nil to hex_to_rgb#5

Open
sekhat wants to merge 1 commit intopsliwka:masterfrom
sekhat:master
Open

Fix shade_color passing nil to hex_to_rgb#5
sekhat wants to merge 1 commit intopsliwka:masterfrom
sekhat:master

Conversation

@sekhat
Copy link
Copy Markdown
Contributor

@sekhat sekhat commented Feb 23, 2024

Fixes the error thrown when there is no background color set for the Normal highlight.

@psliwka
Copy link
Copy Markdown
Owner

psliwka commented Apr 13, 2024

Hi! Could you please add some description on what problem(s) does this change solve?

@sekhat
Copy link
Copy Markdown
Contributor Author

sekhat commented Apr 14, 2024

I forget the specifics right now. I'll dig back into later.

Off the top of my head though, there was something that was causing nil to be passed as color to shade_color, which got passed to hex_to_rgb, which caused that to error because of it's method call of gsub.

@sekhat
Copy link
Copy Markdown
Contributor Author

sekhat commented Apr 14, 2024

Updated PR description.

@sekhat
Copy link
Copy Markdown
Contributor Author

sekhat commented Apr 16, 2024

Might be, unintentionally, related to #4

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

Successfully merging this pull request may close these issues.

2 participants