mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
fix indent/fold memleak
This commit is contained in:
parent
26230f06b6
commit
d2b78324f2
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ function M.memoize_by_buf_tick(fn, options)
|
||||||
options = options or {}
|
options = options or {}
|
||||||
|
|
||||||
---@type table<string, {result: any, last_tick: integer}>
|
---@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 bufnr_fn = utils.to_func(options.bufnr or utils.identity)
|
||||||
local key_fn = utils.to_func(options.key or utils.identity)
|
local key_fn = utils.to_func(options.key or utils.identity)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue