aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorTristan Konolige <tristan.konolige@gmail.com>2020-04-18 17:04:37 -0600
committerGitHub <noreply@github.com>2020-04-19 01:04:37 +0200
commitbf0f74586153dfa8d550e1cfefd83ca9e0354171 (patch)
treeef631999ea9cb6d778bf5035eb4cdabd007d17ce /runtime/doc
parentc5466ba6ef8333183e1c43c7e762e44539fb2358 (diff)
downloadrneovim-bf0f74586153dfa8d550e1cfefd83ca9e0354171.tar.gz
rneovim-bf0f74586153dfa8d550e1cfefd83ca9e0354171.tar.bz2
rneovim-bf0f74586153dfa8d550e1cfefd83ca9e0354171.zip
lua: allow deepcopy of functions (#12136)
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 800f24b5c9..7f376cbbf0 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -908,7 +908,10 @@ deep_equal({a}, {b}) *vim.deep_equal()*
deepcopy({orig}) *vim.deepcopy()*
Returns a deep copy of the given object. Non-table objects are
copied as in a typical Lua assignment, whereas table objects
- are copied recursively.
+ are copied recursively. Functions are naively copied, so
+ functions in the copied table point to the same functions as
+ those in the input table. Userdata and threads are not copied
+ and will throw an error.
Parameters: ~
{orig} Table to copy