mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
lua: cleanup naming conventions of executor functions
This commit is contained in:
@@ -212,10 +212,10 @@ Boolean nvim_buf_attach(uint64_t channel_id,
|
||||
|
||||
error:
|
||||
// TODO(bfredl): ASAN build should check that the ref table is empty?
|
||||
executor_free_luaref(cb.on_lines);
|
||||
executor_free_luaref(cb.on_bytes);
|
||||
executor_free_luaref(cb.on_changedtick);
|
||||
executor_free_luaref(cb.on_detach);
|
||||
api_free_luaref(cb.on_lines);
|
||||
api_free_luaref(cb.on_bytes);
|
||||
api_free_luaref(cb.on_changedtick);
|
||||
api_free_luaref(cb.on_detach);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -247,10 +247,10 @@ Boolean nvim_buf_detach(uint64_t channel_id,
|
||||
static void buf_clear_luahl(buf_T *buf, bool force)
|
||||
{
|
||||
if (buf->b_luahl || force) {
|
||||
executor_free_luaref(buf->b_luahl_start);
|
||||
executor_free_luaref(buf->b_luahl_window);
|
||||
executor_free_luaref(buf->b_luahl_line);
|
||||
executor_free_luaref(buf->b_luahl_end);
|
||||
api_free_luaref(buf->b_luahl_start);
|
||||
api_free_luaref(buf->b_luahl_window);
|
||||
api_free_luaref(buf->b_luahl_line);
|
||||
api_free_luaref(buf->b_luahl_end);
|
||||
}
|
||||
buf->b_luahl_start = LUA_NOREF;
|
||||
buf->b_luahl_window = LUA_NOREF;
|
||||
|
Reference in New Issue
Block a user