From 5834743735b8ca120a50b7a5f9fb84c6af558fdd Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Apr 2026 06:07:42 +0800 Subject: [PATCH] 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 https://github.com/vim/vim/commit/c23bfd7922dc20d83c96203d9f8840d0673245cf --- runtime/ftplugin/help.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/ftplugin/help.vim b/runtime/ftplugin/help.vim index 1578f0d2d7..86315b21ec 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