Hi,

On Thu, Dec 9, 2021 at 8:13 AM naohiro ono <[email protected]>
wrote:

> *Describe the issue*
>
> Using a funcref for 'operatorfunc' option might cause a crash.
>

The garbage collection support for the callback functions is missing. I
will send
out a PR later.

- Yegappan


> *Steps to reproduce*
>
>    1.
>
>    Run vim -Nu NONE.
>    2.
>
>    :source this script:
>
>    function SetOperatorfunc()
>      let operator = {'execute': function('OperatorExecute')}
>      let &operatorfunc = operator.executeendfunctionfunction 
> OperatorExecute(_) dictendfunctioncall SetOperatorfunc()call 
> test_garbagecollect_now()set operatorfunc=
>
>    Vim crashes.
>
> *Expected behavior*
>
> Vim does not crash.
>
> *Environment*
>
>    - Vim 8.2.3765
>    - macOS 10.15.7
>    - iTerm2
>
>
>

-- 
-- 
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/CAAW7x7kH%3DfPQLopnzsdiHc81WKCKRXtggUK%3D1k-tgd-smhEF0g%40mail.gmail.com.

Raspunde prin e-mail lui