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

Enable fade effects to work on transparent backgrounds by fixing "bad argument to blend" bug #19

Merged
merged 1 commit into from Sep 9, 2021

Conversation

njhoffman
Copy link
Contributor

I'm one of the troublemakers with a transparent background, the new updates with the fade effects were causing a bug for me:
Error running notification service: ...art/nvim-notify/lua/notify/service/buffer/highlights.lua:59: bad argument #2 to 'blend' (no value)

Just required an extra conditional to see if the background color ends up at 'none' or ''. In case you're wondering, it still fades even though my background is transparent because I have active tmux panes highlighted a solid color to help identify the active pane, so when it's focused it's actually opaque (even though the vim background never is).

@rcarriga
Copy link
Owner

rcarriga commented Sep 8, 2021

Hey thanks for the PR! 😄

Just so I understand the issue a bit better, what highlight group definition is causing this? I can't seem to reproduce this (I'm using a transparent background as well) and only get the return of synIDattr to be an empty string

@rcarriga
Copy link
Owner

rcarriga commented Sep 9, 2021

Ahah figured it out, I have it set to NONE which becomes '' while none becomes 'none'... Oh vim 😆 Thank you for the PR again!

@rcarriga rcarriga merged commit 118444c into rcarriga:master Sep 9, 2021
rcarriga added a commit that referenced this pull request Sep 9, 2021
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.

None yet

2 participants