aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/builtin.txt2
-rw-r--r--runtime/lua/vim/_meta/vimfn.lua2
-rw-r--r--src/nvim/eval.lua2
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index dc4f9610e0..99ea2920f7 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -3411,6 +3411,7 @@ id({expr}) *id()*
reuse identifiers of the garbage-collected ones.
indent({lnum}) *indent()*
+ The result is a Number, which is indent of line {lnum} in the
current buffer. The indent is counted in spaces, the value
of 'tabstop' is relevant. {lnum} is used just like in
|getline()|.
@@ -3888,6 +3889,7 @@ keytrans({string}) *keytrans()*
< <C-Home>
len({expr}) *len()* *E701*
+ The result is a Number, which is the length of the argument.
When {expr} is a String or a Number the length in bytes is
used, as with |strlen()|.
When {expr} is a |List| the number of items in the |List| is
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
index bb11e34a57..7c98ed8849 100644
--- a/runtime/lua/vim/_meta/vimfn.lua
+++ b/runtime/lua/vim/_meta/vimfn.lua
@@ -4115,6 +4115,7 @@ function vim.fn.iconv(string, from, to) end
--- @return any
function vim.fn.id(expr) end
+--- The result is a Number, which is indent of line {lnum} in the
--- current buffer. The indent is counted in spaces, the value
--- of 'tabstop' is relevant. {lnum} is used just like in
--- |getline()|.
@@ -4712,6 +4713,7 @@ function vim.fn.keytrans(string) end
--- @return any
function vim.fn.last_buffer_nr() end
+--- The result is a Number, which is the length of the argument.
--- When {expr} is a String or a Number the length in bytes is
--- used, as with |strlen()|.
--- When {expr} is a |List| the number of items in the |List| is
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 907993ddca..90859b0a1a 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -5057,6 +5057,7 @@ M.funcs = {
args = 1,
base = 1,
desc = [=[
+ The result is a Number, which is indent of line {lnum} in the
current buffer. The indent is counted in spaces, the value
of 'tabstop' is relevant. {lnum} is used just like in
|getline()|.
@@ -5775,6 +5776,7 @@ M.funcs = {
args = 1,
base = 1,
desc = [=[
+ The result is a Number, which is the length of the argument.
When {expr} is a String or a Number the length in bytes is
used, as with |strlen()|.
When {expr} is a |List| the number of items in the |List| is