neovim

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

commit fdcc4c6b66ae2e2e9ca2120a22580d91f8cdce74
parent ee60bf6112da006768848f2a9198005bfb664951
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed, 29 Oct 2025 07:22:16 +0800

vim-patch:9ad7067: runtime(doc): Highlight [expr] arg in :help :return description

closes: vim/vim#18654

https://github.com/vim/vim/commit/9ad706735d35c23ecbfa8a306190882631a7e2b4

Co-authored-by: Doug Kearns <dougkearns@gmail.com>

Diffstat:
Mruntime/doc/userfunc.txt | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt @@ -179,9 +179,9 @@ See |:verbose-cmd| for more information. With the ! there is no error if the function does not exist. *:retu* *:return* *E133* -:retu[rn] [expr] Return from a function. When "[expr]" is given, it is +:retu[rn] [expr] Return from a function. When [expr] is given, it is evaluated and returned as the result of the function. - If "[expr]" is not given, the number 0 is returned. + If [expr] is not given, the number 0 is returned. When a function ends without an explicit ":return", the number 0 is returned. Note that there is no check for unreachable lines,