Set the virtual text properties in the first line on any buffer:
let tn = 'test'
call prop_type_add(tn, #{highlight: 'ToDo'})
call prop_add(1, 0, #{type: tn, text: '-----', text_align: 'above'})
call prop_add(1, 0, #{type: tn, text: '>>>>>', text_align: 'after'})
call prop_add(1, 0, #{type: tn, text: '+++++', text_align: 'below'})
Check those properties:
echo prop_find(#{type: tn, lnum: 1, col: 1})
On vim 9.2.0315:
{'lnum': 1, 'col': 0, 'type_bufnr': 0, 'end': 1, 'type': 'test', 'text': '-----', 'start': 1, 'text_align': 'above'}
On vim 9.2.0321:
{}
It looks like a regression.
prop_find() correctly finds the virtual text set in the first line.
9.2.0321
Windows 11
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()