diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-06-04 14:54:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-04 14:54:44 +0200 |
commit | 3adb8a10b157bc5c20ab1bdcbaa6f6aa9e36a5fc (patch) | |
tree | 471fa95580c6597a6bc1f922f9c401744e49de73 /src/nvim/buffer.c | |
parent | db415bde5f1e366fea09ad572cf37a84894d61d4 (diff) | |
parent | f5c56f03bb9ee25c3d931034497dc76a5591b770 (diff) | |
download | rneovim-3adb8a10b157bc5c20ab1bdcbaa6f6aa9e36a5fc.tar.gz rneovim-3adb8a10b157bc5c20ab1bdcbaa6f6aa9e36a5fc.tar.bz2 rneovim-3adb8a10b157bc5c20ab1bdcbaa6f6aa9e36a5fc.zip |
Merge pull request #9170 from bfredl/lua_cb
lua callbacks for nvim_buf_attach
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 0c14656b33..52dc359716 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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 |