Yegappan Lakshmanan
unread,Aug 1, 2022, 2:17:16 PM8/1/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_dev
Hi,
When deleting all the characters in a line with virtual text at the
end, the virtual
text is not removed. Instead the virtual text is attached to the next line:
------------------------------------------------------------------------------------
new
call setline(1, ["one", "two"])
call prop_type_add("MyProp", #{bufnr: bufnr(), highlight: 'Search'})
call prop_add(1, 0, #{type: "MyProp", text: "test", length: 4})
normal v$x
------------------------------------------------------------------------------------
After sourcing the above script, I expected the buffer to contain only
the line "two" but it has "two" followed by the virtual text "test".
- Yegappan