fix indent/fold memleak

This commit is contained in:
Pham Huy Hoang 2023-05-16 20:16:53 +09:00 committed by Christian Clason
parent 26230f06b6
commit d2b78324f2

View file

@ -351,7 +351,7 @@ function M.memoize_by_buf_tick(fn, options)
options = options or {}
---@type table<string, {result: any, last_tick: integer}>
local cache = {}
local cache = setmetatable({}, { __mode = "kv" })
local bufnr_fn = utils.to_func(options.bufnr or utils.identity)
local key_fn = utils.to_func(options.key or utils.identity)