]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(c): set omnifunc only for Vim, since it is Vim9 Script
authorChristian Brabandt <cb@256bit.org>
Fri, 8 Aug 2025 11:43:35 +0000 (13:43 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 8 Aug 2025 11:45:25 +0000 (13:45 +0200)
related: #17871

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/c.vim

index 915861b8d50a72d3ebd4fce74158c5676c1e980d..42a435f1df0e25d4e0e8ed9eaf31128ec571c701 100644 (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