diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-03-25 22:06:31 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-03-27 10:39:46 +0000 |
commit | 7d971500847089ec8ade926a7f84d6bb3a51c8b0 (patch) | |
tree | e626dbcfb7aaa1749a7819c00990abc8e0fc9a99 /runtime/lua/vim/func.lua | |
parent | c4e19308513508dca0d5f2c7786cb1e2d90f7d0b (diff) | |
download | rneovim-7d971500847089ec8ade926a7f84d6bb3a51c8b0.tar.gz rneovim-7d971500847089ec8ade926a7f84d6bb3a51c8b0.tar.bz2 rneovim-7d971500847089ec8ade926a7f84d6bb3a51c8b0.zip |
fix(treesitter): return correct match table in iter_captures()
Diffstat (limited to 'runtime/lua/vim/func.lua')
-rw-r--r-- | runtime/lua/vim/func.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/lua/vim/func.lua b/runtime/lua/vim/func.lua index 206d1bae95..f71659ffb4 100644 --- a/runtime/lua/vim/func.lua +++ b/runtime/lua/vim/func.lua @@ -32,10 +32,11 @@ local M = {} --- first n arguments passed to {fn}. --- --- @param fn F Function to memoize. +--- @param strong? boolean Do not use a weak table --- @return F # Memoized version of {fn} --- @nodoc -function M._memoize(hash, fn) - return require('vim.func._memoize')(hash, fn) +function M._memoize(hash, fn, strong) + return require('vim.func._memoize')(hash, fn, strong) end return M |