neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 0af056ebce189deedb58f7048108977fa5d81713
parent 520d94cc23416e14a4535c9ca6b7963681a7f461
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 30 Jul 2024 11:46:24 +0800

vim-patch:49cdd62: runtime(doc): list of new/changed features in version9.txt

closes: vim/vim#13753

https://github.com/vim/vim/commit/49cdd629a39d7e40e7349e65cb177e2442871a04

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>

Diffstat:
Mruntime/doc/builtin.txt | 4++++
Mruntime/doc/map.txt | 3++-
Mruntime/lua/vim/_meta/vimfn.lua | 4++++
Msrc/nvim/eval.lua | 5++++-
4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt @@ -3901,6 +3901,10 @@ items({dict}) *items()* for [key, value] in items(mydict) echo key .. ': ' .. value endfor +< + A List or a String argument is also supported. In these + cases, items() returns a List with the index and the value at + the index. jobpid({job}) *jobpid()* Return the PID (process id) of |job-id| {job}. diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt @@ -354,7 +354,8 @@ Note: *E1255* *E1136* <Cmd> commands must terminate, that is, they must be followed by <CR> in the -{rhs} of the mapping definition. |Command-line| mode is never entered. +{rhs} of the mapping definition. |Command-line| mode is never entered. To use +a literal <CR> in the {rhs}, use |<lt>|. 1.3 MAPPING AND MODES *:map-modes* diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua @@ -4699,6 +4699,10 @@ function vim.fn.isnan(expr) end --- for [key, value] in items(mydict) --- echo key .. ': ' .. value --- endfor +--- < +--- A List or a String argument is also supported. In these +--- cases, items() returns a List with the index and the value at +--- the index. --- --- @param dict any --- @return any diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua @@ -5752,7 +5752,10 @@ M.funcs = { for [key, value] in items(mydict) echo key .. ': ' .. value endfor - + < + A List or a String argument is also supported. In these + cases, items() returns a List with the index and the value at + the index. ]=], name = 'items', params = { { 'dict', 'any' } },