runtime(help): fix wrong check for existing HelpComplete function
Commit:
https://github.com/vim/vim/commit/c23bfd7922dc20d83c96203d9f8840d0673245cf
Author: zeertzjq <
zeer...@outlook.com>
Date: Sun Apr 26 14:36:23 2026 +0000
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 <
zeer...@outlook.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/ftplugin/help.vim b/runtime/ftplugin/help.vim
index e77484bff..2f4de1405 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