From: zeertzjq Date: Sun, 26 Apr 2026 14:36:23 +0000 (+0000) Subject: runtime(help): fix wrong check for existing HelpComplete function X-Git-Tag: v9.2.0397~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c23bfd7922dc20d83c96203d9f8840d0673245cf;p=thirdparty%2Fvim.git runtime(help): fix wrong check for existing HelpComplete function To check for an existing HelpComplete function, exists('*HelpComplete') should be used, as exists('HelpComplete') still returns 0 after sourcing the ftplugin. closes: #20073 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/help.vim b/runtime/ftplugin/help.vim index e77484bffb..2f4de14055 100644 --- a/runtime/ftplugin/help.vim +++ b/runtime/ftplugin/help.vim @@ -24,7 +24,7 @@ if has("conceal") setlocal cole=2 cocu=nc endif -if !exists('HelpComplete') +if !exists('*HelpComplete') func HelpComplete(findstart, base) if a:findstart let colnr = col('.') - 1 " Get the column number before the cursor