vim-patch:c23bfd7: 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: vim/vim#20073

c23bfd7922
This commit is contained in:
zeertzjq
2026-04-27 06:07:42 +08:00
parent f0ad84366a
commit 5834743735

View File

@@ -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