runtime(help): fix wrong check for existing HelpComplete function
Commit:
https://github.com/vim/vim/commit/c23bfd7922dc20d83c96203d9f8840d0673245cf
Author: zeertzjq <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1wH0jK-002NSc-A2%40256bit.org.