mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
api: allow nvim_buf_attach from lua using callbacks
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/api/private/handle.h"
|
||||
#include "nvim/msgpack_rpc/helpers.h"
|
||||
#include "nvim/lua/executor.h"
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/assert.h"
|
||||
#include "nvim/vim.h"
|
||||
@@ -1147,6 +1148,10 @@ void api_free_object(Object value)
|
||||
api_free_dictionary(value.data.dictionary);
|
||||
break;
|
||||
|
||||
case kObjectTypeLuaRef:
|
||||
executor_free_luaref(value.data.luaref);
|
||||
break;
|
||||
|
||||
default:
|
||||
abort();
|
||||
}
|
||||
|
Reference in New Issue
Block a user