Hi,
On Wed, Jul 21, 2021 at 8:40 AM lacygoill <[email protected]> wrote:
> *Describe the bug*
>
> In Vim9 script, we cannot pass a list of numbers to cursor().
>
> *To Reproduce*
>
> Run this shell command:
>
> vim -Nu NONE +'vim9 cursor([1, 1])'
>
> E1210 is raised:
>
> E1210: Number required for argument 2
>
> *Expected behavior*
>
> No error is raised, because :help cursor() states that cursor() accepts a
> single list as only argument. And it is allowed for the latter to only
> contain 2 numbers:
>
> When there is one argument {list} this is used as a |List|
> with two, three or four item:
> [{lnum}, {col}]
>
> *Environment*
>
> - Vim version: 8.2 Included patches: 1-3189
> - OS: Ubuntu 20.04.2 LTS
> - Terminal: XTerm(353)
>
> *Additional context*
>
> Regression introduced in 8.2.3188.
>
>
>
Thanks for reporting the issue. I have updated PR #8598 with
a fix for this.
Regards,
Yegappan
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7m4UmJ%2B%2BwGHtSyBZTd-xtofc02DxZxOumxjNbR2U0XRyQ%40mail.gmail.com.