mirror of
https://github.com/neovim/neovim.git
synced 2026-07-24 18:00:46 +00:00
Problem: When the cursor line has concealed text before the start of the
completion, the insert-mode completion popup is drawn at the wrong
screen column and the cursor no longer lines up with the completed
text.
Solution: Record the concealed width before the cursor on its screen line in
a new `win_T` field while `win_line()` draws it, subtract it in
`pum_display()` to place the menu over the visible text, and redraw
the cursor line so `win_line()` corrects the cursor too.
closes: vim/vim#20539
d167c50de4
Co-authored-by: Barrett Ruth <br@barrettruth.com>