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

16 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Jan 3, 2026, 3:55:19 PMJan 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 PMJan 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 PMJan 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 PMJan 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 AMJan 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>

Yegappan Lakshmanan

unread,
Jan 6, 2026, 10:51:58 AMJan 6
to vim/vim, Push

@yegappan pushed 1 commit.

  • a07c22b 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/c96b3b79f3e244c83712ad6a2032dea80ccab08b/after/a07c22b2f47360b5aa42f0228890e8d39c299a30@github.com>

Yegappan Lakshmanan

unread,
Jan 6, 2026, 1:19:56 PMJan 6
to vim/vim, Push

@yegappan pushed 1 commit.

  • 6ebf749 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/a07c22b2f47360b5aa42f0228890e8d39c299a30/after/6ebf749823c0ba2eeaeb9d5467783bbe90c4ba36@github.com>

Yegappan Lakshmanan

unread,
Jan 8, 2026, 12:23:58 AMJan 8
to vim/vim, Push

@yegappan pushed 1 commit.

  • 6fc4e6d 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/6ebf749823c0ba2eeaeb9d5467783bbe90c4ba36/after/6fc4e6da2619713420e5b9618f54f7abfcc317ea@github.com>

Yegappan Lakshmanan

unread,
Jan 8, 2026, 1:20:53 AMJan 8
to vim/vim, Push

@yegappan pushed 1 commit.

  • 51d9a1c Support adding new item to a list for different types

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19076/before/6fc4e6da2619713420e5b9618f54f7abfcc317ea/after/51d9a1c19b96d278a3fb065da3d0f240fba5e537@github.com>

Yegappan Lakshmanan

unread,
Jan 8, 2026, 1:47:58 AMJan 8
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/623083add4659e8b600bdd3d87b2675e93181ea4/after/72997e99146eb12690ec37deb03c4cd9dc79c077@github.com>

Yegappan Lakshmanan

unread,
Jan 8, 2026, 11:49:32 AMJan 8
to vim/vim, Push

@yegappan pushed 1 commit.

  • f1c871d 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/8ece814d2b9bb7628ae06f299927533d6fbad6af/after/f1c871df5c37da6bb316f0db75d5f3118da55609@github.com>

Yegappan Lakshmanan

unread,
Jan 8, 2026, 4:18:34 PMJan 8
to vim/vim, Push

@yegappan pushed 1 commit.

  • ccbb028 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/f1c871df5c37da6bb316f0db75d5f3118da55609/after/ccbb0280dcbc33c5a6fbbddadb68e436ef9c8712@github.com>

Yegappan Lakshmanan

unread,
Jan 8, 2026, 6:03:43 PMJan 8
to vim/vim, Push

@yegappan pushed 1 commit.

  • 1a6a00f 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/ccbb0280dcbc33c5a6fbbddadb68e436ef9c8712/after/1a6a00fa80765546d9ee1ac58f60f223ac489078@github.com>

Yegappan Lakshmanan

unread,
Jan 9, 2026, 12:39:30 AMJan 9
to vim/vim, Push

@yegappan pushed 1 commit.

  • 8f70c46 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/1a6a00fa80765546d9ee1ac58f60f223ac489078/after/8f70c463ec59e73f883715b16375ae7cdccf8de1@github.com>

Yegappan Lakshmanan

unread,
Jan 9, 2026, 12:43:31 AMJan 9
to vim/vim, Subscribed
yegappan left a comment (vim/vim#19076)

This PR is now ready.


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

Yegappan Lakshmanan

unread,
Jan 9, 2026, 3:19:05 PMJan 9
to vim/vim, Push

@yegappan pushed 1 commit.

  • db5747a 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/8f70c463ec59e73f883715b16375ae7cdccf8de1/after/db5747acede6933ba3577da5ecbc01a0464d27ad@github.com>

Christian Brabandt

unread,
Jan 10, 2026, 1:12:01 PMJan 10
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19076)

thanks


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

Christian Brabandt

unread,
Jan 10, 2026, 1:19:00 PMJan 10
to vim/vim, Subscribed

Closed #19076 via 949e3be.


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

Reply all
Reply to author
Forward
0 new messages