mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
fix(eval): check for v:lua when calling callback (#19855)
This makes callback_call() match call_vim_function() when calling a function.
This commit is contained in:
@@ -6191,7 +6191,7 @@ static void op_function(const oparg_T *oap)
|
||||
finish_op = false;
|
||||
|
||||
typval_T rettv;
|
||||
if (callback_call(&opfunc_cb, 1, argv, &rettv) != FAIL) {
|
||||
if (callback_call(&opfunc_cb, 1, argv, &rettv)) {
|
||||
tv_clear(&rettv);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user