On Wed, Jul 27, 2022 at 9:02 AM Yegappan Lakshmanan <[email protected]> wrote: > > Hi, > > 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. >
I also noticed other problems with virtual text. For example, with the above script, if you place the cursor at the beginning of the line and execute veey, then it copies the text "A quick brown fox jumps". - 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/CAAW7x7k-4ai%3DDbb7pyfCrNBYAWTo%3DKTfcN9nr2khhCuzNq3L%3Dw%40mail.gmail.com.
