runtime(help): make help omnifunc global
Commit:
https://github.com/vim/vim/commit/0ca1121d1f3db831bd84a8f25f95484a90467d87
Author: Peter Cardenas <[email protected]>
Date: Sun Apr 26 08:42:57 2026 +0000
runtime(help): make help omnifunc global
closes: https://github.com/vim/vim/issues/20024
Signed-off-by: Peter Cardenas
<[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/help.vim b/runtime/ftplugin/help.vim
index e8651b5d5..e77484bff 100644
--- a/runtime/ftplugin/help.vim
+++ b/runtime/ftplugin/help.vim
@@ -4,6 +4,7 @@
" Last Change: 2025 Apr 08
" 2025 Apr 08 by Vim project (set 'omnifunc' and 'iskeyword', #17073)
" 2025 Aug 08 by Vim project (unset comment options, #17889)
+" 2026 Apr 26 by Vim project (make HelpComplete global, #20024)
if exists("b:did_ftplugin")
finish
@@ -17,14 +18,14 @@ let b:undo_ftplugin = "setl isk< fo< tw< cole< cocu<
keywordprg< omnifunc< comme
setl comments= cms=
-setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help
omnifunc=s:HelpComplete
+setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help
omnifunc=HelpComplete
let &l:iskeyword='!-~,^*,^|,^",192-255'
if has("conceal")
setlocal cole=2 cocu=nc
endif
-if !exists('*s:HelpComplete')
- func s:HelpComplete(findstart, base)
+if !exists('HelpComplete')
+ func HelpComplete(findstart, base)
if a:findstart
let colnr = col('.') - 1 " Get the column number before the cursor
let line = getline('.')
--
--
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/E1wGv6v-001xQa-6S%40256bit.org.