[vim/vim] Vim9: listener_add() fails when given only a callback (PR #21116)

4 views
Skip to first unread message

h_east

unread,
Aug 21, 2026, 2:08:02 PM (5 days ago) Aug 21
to vim/vim, Subscribed
Problem:  In Vim9 script, listener_add() given only a callback fails
          with "E1212: Bool required for argument 3".
Solution: Check the third argument only when the second one is there.
          Without a second argument the third is not filled in, so
          what was checked was whatever happened to be in that slot.

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

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

Commit Summary

  • cbebd96 Vim9: listener_add() fails when given only a callback

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21116@github.com>

Christian Brabandt

unread,
Aug 23, 2026, 3:45:21 PM (3 days ago) Aug 23
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21116)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21116/c5388093689@github.com>

Reply all
Reply to author
Forward
0 new messages