diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-05-17 13:00:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 13:00:32 +0200 |
commit | 67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74 (patch) | |
tree | c1a0e185985227f05f1da2480de74739c779dfaf /src/nvim/buffer.c | |
parent | 189fb6203262340e7a59e782be970bcd8ae28e61 (diff) | |
parent | e2fdd53d8c015913e8be4ff708fc3488558c8906 (diff) | |
download | rneovim-67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74.tar.gz rneovim-67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74.tar.bz2 rneovim-67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74.zip |
Merge pull request #15534 from bfredl/monomap
refactor(map): avoid duplicated khash_t implementations for values and support sets
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 082e47ed0f..49fd09ebd0 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -833,7 +833,7 @@ void buf_freeall(buf_T *buf, int flags) /// itself (not the file, that must have been done already). static void free_buffer(buf_T *buf) { - pmap_del(handle_T)(&buffer_handles, buf->b_fnum); + pmap_del(int)(&buffer_handles, buf->b_fnum, NULL); buf_free_count++; // b:changedtick uses an item in buf_T. free_buffer_stuff(buf, kBffClearWinInfo); @@ -1865,7 +1865,7 @@ buf_T *buflist_new(char *ffname_arg, char *sfname_arg, linenr_T lnum, int flags) lastbuf = buf; buf->b_fnum = top_file_num++; - pmap_put(handle_T)(&buffer_handles, buf->b_fnum, buf); + pmap_put(int)(&buffer_handles, buf->b_fnum, buf); if (top_file_num < 0) { // wrap around (may cause duplicates) emsg(_("W14: Warning: List of file names overflow")); if (emsg_silent == 0 && !in_assert_fails) { |