mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
api: allow nvim_buf_attach from lua using callbacks
This commit is contained in:
@@ -1836,6 +1836,8 @@ buf_T * buflist_new(char_u *ffname, char_u *sfname, linenr_T lnum, int flags)
|
||||
buf->b_p_bl = (flags & BLN_LISTED) ? true : false; // init 'buflisted'
|
||||
kv_destroy(buf->update_channels);
|
||||
kv_init(buf->update_channels);
|
||||
kv_destroy(buf->update_callbacks);
|
||||
kv_init(buf->update_callbacks);
|
||||
if (!(flags & BLN_DUMMY)) {
|
||||
// Tricky: these autocommands may change the buffer list. They could also
|
||||
// split the window with re-using the one empty buffer. This may result in
|
||||
|
Reference in New Issue
Block a user