diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-07-29 11:31:59 +0200 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-16 14:40:32 +0100 |
commit | 41f761130e4fcbe415e206a92e3161248aa11152 (patch) | |
tree | a04d73e9dddcedf718e45d7e2def59e68321b82d /src | |
parent | a265201307f6d7551518b67e16de68f5b9e2527c (diff) | |
download | rneovim-41f761130e4fcbe415e206a92e3161248aa11152.tar.gz rneovim-41f761130e4fcbe415e206a92e3161248aa11152.tar.bz2 rneovim-41f761130e4fcbe415e206a92e3161248aa11152.zip |
backport: fix(decorations): crash when :bdelete (extmark_free_all) after clear_namespace
fixes #15212
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/extmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c index 2906a2196b..62ccf89484 100644 --- a/src/nvim/extmark.c +++ b/src/nvim/extmark.c @@ -268,7 +268,7 @@ bool extmark_clear(buf_T *buf, uint64_t ns_id, } ExtmarkNs *my_ns = all_ns ? buf_ns_ref(buf, item.ns_id, false) : ns; map_del(uint64_t, uint64_t)(my_ns->map, item.mark_id); - map_del(uint64_t, ExtmarkItem)(buf->b_extmark_index, mark.id); + map_del(uint64_t, ExtmarkItem)(buf->b_extmark_index, start_id); marktree_del_itr(buf->b_marktree, itr, false); } else { marktree_itr_next(buf->b_marktree, itr); |