fix(column): clear "b_signcols" when marktree is cleared

This commit is contained in:
Luuk van Baal
2024-01-22 15:34:42 +01:00
committed by Lewis Russell
parent 51f783f2fa
commit 13d50c3b13
2 changed files with 26 additions and 0 deletions

View File

@@ -309,6 +309,9 @@ void extmark_free_all(buf_T *buf)
marktree_clear(buf->b_marktree);
buf->b_signcols.max = 0;
CLEAR_FIELD(buf->b_signcols.count);
map_destroy(uint32_t, buf->b_extmark_ns);
*buf->b_extmark_ns = (Map(uint32_t, uint32_t)) MAP_INIT;
}