[vim/vim] When adding a new item at the end of a list in vim9script, use the proper item type (PR #19076)

8 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Jan 3, 2026, 3:55:19 PM (3 days ago) Jan 3
to vim/vim, Subscribed

In a Vim9 script, a new item can be appended to a list by using the list length
as the index. When doing this, Vim initially adds a number as the new item.
This led to the type error reported in #19045. Instead of using a number as the
new item, this change creates a new item based on the proper type before
adding it to the list.

Fixes the issue reported in #19045.


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

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

Commit Summary

  • ab49605 When adding a new item at the end of a list in vim9script, use the proper item type

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/19076@github.com>

Yegappan Lakshmanan

unread,
Jan 3, 2026, 3:58:12 PM (3 days ago) Jan 3
to vim/vim, Push

@yegappan pushed 1 commit.

  • 6e8e462 Check for NULL return from check_range_index_one()


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19076/before/ab496057c98063b13e869d6e3fae4d499077b3a0/after/6e8e4620f736fca6c027c87debc26016ade42d6b@github.com>

Yegappan Lakshmanan

unread,
Jan 3, 2026, 4:20:56 PM (3 days ago) Jan 3
to vim/vim, Push

@yegappan pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19076/before/144a0ddf34c1a8051888666d5f896cd936a5d6ac/after/0655066805bdd6825cdbb69f92d63be65de93c3d@github.com>

Yegappan Lakshmanan

unread,
Jan 4, 2026, 8:35:36 PM (2 days ago) Jan 4
to vim/vim, Push

@yegappan pushed 1 commit.

  • 6967d9e When adding a new item at the end of a list in vim9script, use the proper item type

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19076/before/31bfe11f82c5a00a92cbc0635452390c7109fa7e/after/6967d9ed4993eda63397acdc9ed5448dd576b672@github.com>

Yegappan Lakshmanan

unread,
Jan 5, 2026, 1:47:56 AM (yesterday) Jan 5
to vim/vim, Push

@yegappan pushed 1 commit.

  • c96b3b7 When adding a new item at the end of a list in vim9script, use the proper item type

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19076/before/6967d9ed4993eda63397acdc9ed5448dd576b672/after/c96b3b79f3e244c83712ad6a2032dea80ccab08b@github.com>

Reply all
Reply to author
Forward
0 new messages