aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMichael Ennen <mike.ennen@gmail.com>2016-10-28 22:58:11 -0700
committerJames McCoy <jamessan@jamessan.com>2016-12-12 10:17:35 -0500
commitc52856af2c5f3b12b89671d91c35689fb2f84a70 (patch)
treef4e722d19ee27f08c5bf4ebaf209aa7c197baeb9 /runtime
parent02c58d8a07a6d7ed450c8c7146c93f4dca665ba2 (diff)
downloadrneovim-c52856af2c5f3b12b89671d91c35689fb2f84a70.tar.gz
rneovim-c52856af2c5f3b12b89671d91c35689fb2f84a70.tar.bz2
rneovim-c52856af2c5f3b12b89671d91c35689fb2f84a70.zip
vim-patch:7.4.1842
Problem: get() works for Partial but not for Funcref. Solution: Accept Funcref. Also return the function itself. (Nikolai Pavlov) https://github.com/vim/vim/commit/03e19a04ac2ca55643663b97b6ab94043233dcbd
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 05dcc62903..fd1c1f2cf2 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1957,6 +1957,7 @@ function({name} [, {arglist}] [, {dict}])
garbagecollect([{atexit}]) none free memory, breaking cyclic references
get({list}, {idx} [, {def}]) any get item {idx} from {list} or {def}
get({dict}, {key} [, {def}]) any get item {key} from {dict} or {def}
+get({func}, {what}) any get property of funcref/partial {func}
getbufline({expr}, {lnum} [, {end}])
List lines {lnum} to {end} of buffer {expr}
getbufvar({expr}, {varname} [, {def}])
@@ -3586,9 +3587,10 @@ get({dict}, {key} [, {default}])
Get item with key {key} from |Dictionary| {dict}. When this
item is not available return {default}. Return zero when
{default} is omitted.
-get({partial}, {what})
- Get an item with from Funcref {partial}. Possible values for
+get({func}, {what})
+ Get an item with from Funcref {func}. Possible values for
{what} are:
+ 'name' The function name
'func' The function
'dict' The dictionary
'args' The list with arguments