Hi,

When a virtual text is truncated, cursor positioning is incorrect. I am seeing
this issue when using inlay hints with the Vim9 LSP plugin.

To see this issue, source the following test script:

-----------------------------------------------------------------------------------------
new
call prop_type_add('Param', #{highlight: 'Conceal'})
call setline(1, "\t\t\t\tif (var_check_fixed(test_flag, arg_errmsg, gettext))")
call prop_add(1, 25, #{type: 'Param', text: 'flags: '})
call prop_add(1, 36, #{type: 'Param', text: 'long_name_arg: '})
-----------------------------------------------------------------------------------------

After sourcing the above script, press '$' on line 1. You will see that the
cursor is positioned some columns after the last character. Also, if you
press '%' from one of the opening parenthesis on this line, you will
see that the cursor is not correctly positioned at the closing parenthesis.

Regards,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7mKoNM4iiwF9y5tOJ_VcMJZN5cFvh%2BoQx6HzA6srbjtcA%40mail.gmail.com.

Raspunde prin e-mail lui