aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/compiler/cppcheck.vim8
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/compiler/cppcheck.vim b/runtime/compiler/cppcheck.vim
index 20c906f412..d6fc0d6873 100644
--- a/runtime/compiler/cppcheck.vim
+++ b/runtime/compiler/cppcheck.vim
@@ -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')? '\' : '/'