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

h_east (Vim Github Repository) <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
```
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 --

  * Vim9: listener_add() fails when given only a callback

-- File Changes --

    M src/change.c (3)
    M src/testdir/test_listener.vim (24)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/21116
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
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 visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/21116%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.