aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/func.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim/func.lua')
-rw-r--r--runtime/lua/vim/func.lua5
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