diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2023-08-08 21:25:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 21:25:22 +0100 |
commit | 4134cebb17dd0bfd2024f1816d6884e8213a620a (patch) | |
tree | 90443b12f448fb226d0d87994217769b7f231f6a | |
parent | c6c21db82b31ea43ce878ab3725dcd901db1e7a1 (diff) | |
download | rneovim-4134cebb17dd0bfd2024f1816d6884e8213a620a.tar.gz rneovim-4134cebb17dd0bfd2024f1816d6884e8213a620a.tar.bz2 rneovim-4134cebb17dd0bfd2024f1816d6884e8213a620a.zip |
docs(builtin): fix some missing lines (#24615)
These two functions seem to have previously had their docs start on the same
line as the signature, which I guess contributed to the lines being lost (though
I checked all other such functions from before again and these were the only
two).
-rw-r--r-- | runtime/doc/builtin.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 2 | ||||
-rw-r--r-- | src/nvim/eval.lua | 2 |
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 |