Commit: runtime(doc): Highlight [expr] arg in :help :return description

0 views
Skip to first unread message

Christian Brabandt

unread,
Oct 28, 2025, 4:30:16 PMOct 28
to vim...@googlegroups.com
runtime(doc): Highlight [expr] arg in :help :return description

Commit: https://github.com/vim/vim/commit/9ad706735d35c23ecbfa8a306190882631a7e2b4
Author: Doug Kearns <dougk...@gmail.com>
Date: Tue Oct 28 20:20:02 2025 +0000

runtime(doc): Highlight [expr] arg in :help :return description

closes: https://github.com/vim/vim/issues/18654

Signed-off-by: Doug Kearns <dougk...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt
index 0f008446e..aa8ed9ec8 100644
--- a/runtime/doc/userfunc.txt
+++ b/runtime/doc/userfunc.txt
@@ -1,4 +1,4 @@
-*userfunc.txt* For Vim version 9.1. Last change: 2025 Oct 27
+*userfunc.txt* For Vim version 9.1. Last change: 2025 Oct 28


VIM REFERENCE MANUAL by Bram Moolenaar
@@ -189,9 +189,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.

Reply all
Reply to author
Forward
0 new messages