[vim/vim] tuple parsing inconsist with repeat() (Issue #19489)

3 views
Skip to first unread message

Mao-Yining

unread,
Feb 22, 2026, 9:39:15 PM (10 hours ago) Feb 22
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#19489)

Steps to reproduce

  1. echo repeat(['a'], 3) output: ['a', 'a', 'a']
  2. echo repeat(('a', 'b'), 2), output ('a', 'b', 'a', 'b')`
  3. echo repeat(('a'), 3) output: aaa, Expect: ('a', 'a', 'a')

Expected behaviour

respond correctly.

Version of Vim

9.2.0043

Environment

MS-Windows

Logs and stack traces


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

h_east

unread,
Feb 22, 2026, 10:33:39 PM (9 hours ago) Feb 22
to vim/vim, Subscribed
h-east left a comment (vim/vim#19489)

It's not a bug. See :h E1526.

An item can be any expression. If there is only one item in the tuple, then
the item must be followed by a comma.

:echo repeat(('a',), 3)
('a', 'a', 'a')


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19489/3942400735@github.com>

Mao-Yining

unread,
Feb 22, 2026, 10:42:36 PM (8 hours ago) Feb 22
to vim/vim, Subscribed

Closed #19489 as completed.


Reply to this email directly, view it on GitHub.

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

Mao-Yining

unread,
Feb 22, 2026, 10:42:37 PM (8 hours ago) Feb 22
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#19489)

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/issues/19489/3942434686@github.com>

Reply all
Reply to author
Forward
0 new messages