[vim/vim] prop_find() does not find a virtual text set in the first line (Issue #20013)

7 views
Skip to first unread message

rickhowe

unread,
Apr 19, 2026, 7:41:21 AM (yesterday) Apr 19
to vim/vim, Subscribed
rickhowe created an issue (vim/vim#20013)

Steps to reproduce

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.

Expected behaviour

prop_find() correctly finds the virtual text set in the first line.

Version of Vim

9.2.0321

Environment

Windows 11

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20013@github.com>

Christian Brabandt

unread,
12:21 PM (6 hours ago) 12:21 PM
to vim/vim, Subscribed

Closed #20013 as completed via c9d4c1d.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/20013/issue_event/24685641414@github.com>

Reply all
Reply to author
Forward
0 new messages