From a93b5a71045da77b48432c6f5108131a5d89e3c0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 21 Dec 2025 06:52:11 +0800 Subject: [PATCH] vim-patch:fe8c8b1: runtime(doc): fix outdated :function help Since patch 7.4.264 a leading "g:" is skipped. closes: vim/vim#18976 https://github.com/vim/vim/commit/fe8c8b1e8596144029a012de2398d7bd57bcc577 (cherry picked from commit 03aef8fd2a9f1005e7d65e0779fb76d93c507f19) --- runtime/doc/userfunc.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt index b0384df454..133493e6f1 100644 --- a/runtime/doc/userfunc.txt +++ b/runtime/doc/userfunc.txt @@ -73,11 +73,11 @@ See |:verbose-cmd| for more information. matching |:endfunction|. The name must be made of alphanumeric characters and - '_', and must start with a capital or "s:" (see - above). Note that using "b:" or "g:" is not allowed. - (since patch 7.4.260 E884 is given if the function - name has a colon in the name, e.g. for "foo:bar()". - Before that patch no error was given). + '_' and must start with a capital or "s:" (see above). + Note that using "b:", "l:", etc. is not allowed (since + patch 7.4.260 E884 is given if the function name has a + colon, e.g. for "foo:bar()"), while a leading "g:" is + skipped and still requires a following capital letter. {name} may be a |Dictionary| |Funcref| entry: > :function dict.init(arg)