The location component had been previously changed to use
vim.api.virtcol (the screen position of the cursor) instead of
vim.api.col (the byte position of the cursor), in order to prevent
showing the wrong column when multibyte characters are present.
Unfortunately, the new inlay hints in neovim 0.10 make heavy use of
virtual text, and therefore the column shown in the location component
is often incorrect.
This change fixes it to use vim.api.charcol, which correctly handles
variable-width characters without including virtual text.
The location component had been previously changed to use
vim.api.virtcol
(the screen position of the cursor) instead ofvim.api.col
(the byte position of the cursor), in order to prevent showing the wrong column when multibyte characters are present. Unfortunately, the new inlay hints in neovim 0.10 make heavy use of virtual text, and therefore the column shown in the location component is often incorrect.This change fixes it to use
vim.api.charcol
, which correctly handles variable-width characters without including virtual text.