test_prop_text.vim:
" This line " This should not be overwritten set signcolumn=yes silent! call prop_type_delete( "a_test" ) call prop_type_add( "a_test", #{ highlight: 'Error' } ) py3 vim.vars[ 'prop_id' ] = vim.eval( 'prop_add( 1, 12, #{ text: "Some text\nnewline", type: "a_test" } )' ) function! Clear() call prop_remove( #{ id: g:prop_id } ) endfunction
vim --clean -S test_prop_text.vim test_prop_text.vimctrl-l does't clear it:call Clear() - this resolves it.I think the solution here is to just not allow newlines in virtual text (for now?) as this seems super hard to get right. Alternatively we could just replace them with a space or something like we do for tab characters.
Either replace the newlines with something like a space, or raise an error.
9.0.137
macOS
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I think we need to disallow special characters like Tab and Newline in the text, otherwise it gets too complicated to compute what is displayed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Yeah I agree.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #10842 as completed via 398649e.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()