vim icon indicating copy to clipboard operation
vim copied to clipboard

Virtual Text property with missing highlight - text not drawn

Open puremourning opened this issue 3 years ago • 0 comments

Steps to reproduce

" Stuff here
call prop_type_add( 'Virtual', #{} )
call prop_add( 1, 1, #{ type: 'Virtual', text: 'name:' } )

normal gg
normal l

vim --clean -S that.vim that.vim

See that the cursor position is wrong. The text of the property is not rendered, but it does affect the cursor position.

Expected behaviour

Render with Normal highlighting? Don't affect cursor position? Raise error in prop_add() ?

Not sure which is best.

reason I'm raising this is I had a typo in my property add: call prop_type_add( 'Something', #{ higlight: 'Comment' } ) - was extremely confused !

Version of Vim

9.0.181

Environment

macOS arm64

Logs and stack traces

No response

puremourning avatar Aug 09 '22 21:08 puremourning