mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
Merge pull request #16396 from bfredl/luaevent
feat(lua): vim.ui_attach to get ui events from lua
This commit is contained in:
@@ -5858,13 +5858,8 @@ bool callback_call(Callback *const callback, const int argcount_in, typval_T *co
|
||||
break;
|
||||
|
||||
case kCallbackLua:
|
||||
rv = nlua_call_ref(callback->data.luaref, NULL, args, true, NULL);
|
||||
switch (rv.type) {
|
||||
case kObjectTypeBoolean:
|
||||
return rv.data.boolean;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
rv = nlua_call_ref(callback->data.luaref, NULL, args, false, NULL);
|
||||
return (rv.type == kObjectTypeBoolean && rv.data.boolean == true);
|
||||
|
||||
case kCallbackNone:
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user