Yegappan wrote:

> After executing the following set of commands:
> 
> ----------------------------------------------------------
> new
> call setline(1, ["A quick brown fox jumps over the fence"])
> call prop_type_add("MyProp", #{bufnr: bufnr(), highlight: 'Search'})
> call prop_add(1, 9, #{type: "MyProp", text: "Hello World", length: 4})
> call cursor(1, 15)
> ----------------------------------------------------------
> 
> I expected the cursor to be positioned at column 15. But the cursor
> is positioned at column 26.  If you press CTRL-L, then the
> cursor is moved to a different column.

Checked this now: It looks correct to me.  The cursor is positioned in
text column 15, which is shifted to the right by the virtual text, thus
that makes it end up in screen column 26, since the text is 11 cells
wide.  CTRL-L does not change this (probably fixed recently).

-- 
hundred-and-one symptoms of being an internet addict:
231. You sprinkle Carpet Fresh on the rugs and put your vacuum cleaner
     in the front doorway permanently so it always looks like you are
     actually attempting to do something about that mess that has amassed
     since you discovered the Internet.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/20220802145322.4FF121C0E80%40moolenaar.net.

Raspunde prin e-mail lui