fix: virtual text on wrapped/long lines #136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wutwere/main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The existing position calculation for virtual text in
CompletionPreview:render_standard(...)fails when lines are longer than the width of the window (i.e. the screen starts scrolling horizontally with nowrap, or when the line wraps). Currently, when this happens, the virtual text is simply rendered outside of the screen and can not be seen.This PR fixes the issue by using the cursor position rather than the position returned by
virtcol(".").This enables virtual text to actually be visible when lines are long.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.