runtime(c): set omnifunc only for Vim, since it is Vim9 Script

related: #17871

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-08-08 13:43:35 +02:00
parent fa2bcbdebc
commit b89ff6c2e1

View File

@ -1,8 +1,7 @@
" Vim filetype plugin file
" Language: C
" Maintainer: The Vim Project <https://github.com/vim/vim>
" Last Change: 2023 Aug 22
" 2024 Jun 02 by Riley Bruins <ribru17@gmail.com> ('commentstring')
" Last Change: 2025 Aug 08
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" Only do this when not done yet for this buffer
@ -28,7 +27,7 @@ setlocal fo-=t fo+=croql
setlocal commentstring=/*\ %s\ */ define& include&
" Set completion with CTRL-X CTRL-O to autoloaded function.
if exists('&ofu')
if exists('&ofu') && has("vim9script")
setlocal ofu=ccomplete#Complete
endif