]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(help): fix wrong check for existing HelpComplete function
authorzeertzjq <zeertzjq@outlook.com>
Sun, 26 Apr 2026 14:36:23 +0000 (14:36 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 26 Apr 2026 14:36:23 +0000 (14:36 +0000)
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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/help.vim

index e77484bffb1d9d3badf6e0417d5f04c78f281488..2f4de140554b553712abcf09576cf49ba6820dd6 100644 (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