Closed xeluxee closed 2 years ago
Did you manage to find any common thread between instances where this happens? I put code in place to prevent this exact thing so I am not really sure what's going on there. Might be something related to the number of writen lines being taken into account instead of actual window lines. Need to investigate a bit further, but any additional info would be awesome!
Thanks for reporting this issue!
Did you manage to find any common thread between instances where this happens?
I've tried it, but I can't understand why it happens only sometimes (or to be more accurate it happens only with some code, as the one specified above)
I'll investigate on this
Could barbar.nvim
be related some way since it occupies the first line of the terminal?
Thanks for reporting this issue!
Thank you for maintaining this plugin
I would assume, that the code which breaks it only has 2-3 lines. On larger files, most likely, you do not see that. Is this correct?
On larger files, most likely, you do not see that. Is this correct?
Yeah you're correct. It works well with files that are made by 5 lines or more
As a slight update, managed to isolate the problem, I am currently working on a fix. Seems like I need to take into account both window height and buffer line count when deciding if the popup should be flipped (which is what leads to the popup being drawn above its intended place, leading to the cropping you see).
Describe the bug
This doesn't happen every time, and it seems to depend on the code.
sumneko_lua
func
with cursor on first linefunc
with cursor on second lineNote: what you see above first line is
barbar.nvim
Environment