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

fix(floating-big-letter): correct padding and positioning #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

9ary
Copy link

@9ary 9ary commented Sep 15, 2024

This fixes a couple small bugs with floating letter hints.

Before:
image

After:
image

This fixes inconsistent/incorrect padding
There is always at least one, empty line in a buffer.
When replacing the range [0,0[, the new contents are inserted before
said empty line.
As of nvim 0.10, this results in the new contents being scrolled up by
one row, breaking the vertical centering.
Fix this by ensuring that the entire buffer content is overridden.
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.

1 participant