]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): fix typo in cppcheck compiler plugin
authorEnno <Konfekt@users.noreply.github.com>
Wed, 6 Nov 2024 19:14:49 +0000 (20:14 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 6 Nov 2024 19:14:49 +0000 (20:14 +0100)
closes: #16002

Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/cppcheck.vim

index 20c906f4129e70efaec5f6dea4d5851597fc7128..d6fc0d68734e7cef09f986e3bd94a5ad3b53831d 100644 (file)
@@ -1,15 +1,13 @@
 " vim compiler file
 " Compiler:    cppcheck (C++ static checker)
 " Maintainer:   Vincent B. (twinside@free.fr)
-" Last Change:  2024 oct 17 by @Konfekt
+" Last Change:  2024 Oct 17 by @Konfekt
 
-if exists("cppcheck")
-  finish
-endif
+if exists("current_compiler") | finish | endif
 let current_compiler = "cppcheck"
 
 let s:cpo_save = &cpo
-set cpo-=C
+set cpo&vim
 
 let s:slash = has('win32')? '\' : '/'