mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
vim-patch:44c8072: runtime(doc): fix style and clarify items() function for String type
related: vim/vim#18021
44c8072ef6
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -650,6 +650,7 @@ String manipulation: *string-functions*
|
|||||||
win_execute() like execute() but in a specified window
|
win_execute() like execute() but in a specified window
|
||||||
trim() trim characters from a string
|
trim() trim characters from a string
|
||||||
gettext() lookup message translation
|
gettext() lookup message translation
|
||||||
|
items() get List of String index-character pairs
|
||||||
|
|
||||||
List manipulation: *list-functions*
|
List manipulation: *list-functions*
|
||||||
get() get an item without error for wrong index
|
get() get an item without error for wrong index
|
||||||
|
@@ -5425,7 +5425,7 @@ isnan({expr}) *isnan()*
|
|||||||
(`0|1`)
|
(`0|1`)
|
||||||
|
|
||||||
items({expr}) *items()*
|
items({expr}) *items()*
|
||||||
Return a |List| with all the key/index and value pairs of {expr}.
|
Return a |List| with all key/index and value pairs of {expr}.
|
||||||
Each |List| item is a list with two items:
|
Each |List| item is a list with two items:
|
||||||
- for a |Dict|: the key and the value
|
- for a |Dict|: the key and the value
|
||||||
- for a |List| or |String|: the index and the value
|
- for a |List| or |String|: the index and the value
|
||||||
|
2
runtime/lua/vim/_meta/vimfn.lua
generated
2
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -4908,7 +4908,7 @@ function vim.fn.islocked(expr) end
|
|||||||
--- @return 0|1
|
--- @return 0|1
|
||||||
function vim.fn.isnan(expr) end
|
function vim.fn.isnan(expr) end
|
||||||
|
|
||||||
--- Return a |List| with all the key/index and value pairs of {expr}.
|
--- Return a |List| with all key/index and value pairs of {expr}.
|
||||||
--- Each |List| item is a list with two items:
|
--- Each |List| item is a list with two items:
|
||||||
--- - for a |Dict|: the key and the value
|
--- - for a |Dict|: the key and the value
|
||||||
--- - for a |List| or |String|: the index and the value
|
--- - for a |List| or |String|: the index and the value
|
||||||
|
@@ -6057,7 +6057,7 @@ M.funcs = {
|
|||||||
args = 1,
|
args = 1,
|
||||||
base = 1,
|
base = 1,
|
||||||
desc = [=[
|
desc = [=[
|
||||||
Return a |List| with all the key/index and value pairs of {expr}.
|
Return a |List| with all key/index and value pairs of {expr}.
|
||||||
Each |List| item is a list with two items:
|
Each |List| item is a list with two items:
|
||||||
- for a |Dict|: the key and the value
|
- for a |Dict|: the key and the value
|
||||||
- for a |List| or |String|: the index and the value
|
- for a |List| or |String|: the index and the value
|
||||||
|
Reference in New Issue
Block a user