[vim/vim] virtual text property IDs are not recycled after deletion (PR #19823)

9 views
Skip to first unread message

h_east

unread,
Mar 25, 2026, 11:51:23 AM (19 hours ago) Mar 25
to vim/vim, Subscribed

Problem: Virtual text property IDs are not recycled after deletion,
causing b_textprop_text growarray to grow indefinitely when
properties are repeatedly added and removed.

Solution: Scan for NULL entries in b_textprop_text to find reusable IDs
in get_textprop_id(), and reuse existing slots in
prop_add_one() when a recycled ID is returned.

Fixes: #19681


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19823

Commit Summary

  • bcff3ff virtual text property IDs are not recycled after deletion

File Changes

(2 files)

Patch Links:


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

Christian Brabandt

unread,
Mar 25, 2026, 3:18:15 PM (15 hours ago) Mar 25
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19823)

Thanks, but I think this is already part of #19685


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/pull/19823/c4129128948@github.com>

Paul Ollis

unread,
Mar 25, 2026, 7:04:57 PM (12 hours ago) Mar 25
to vim/vim, Subscribed
paul-ollis left a comment (vim/vim#19823)

@chrisbra is correct. #19685 removes b_textprop_text.


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/pull/19823/c4130387340@github.com>

h_east

unread,
Mar 25, 2026, 9:10:23 PM (9 hours ago) Mar 25
to vim/vim, Subscribed
h-east left a comment (vim/vim#19823)

#19685 (review)

First, I believe that bugs that can be addressed individually should be fixed on a case-by-case basis.


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/pull/19823/c4130849739@github.com>

Reply all
Reply to author
Forward
0 new messages