runtime(compiler): fix typo in cppcheck compiler plugin

Commit: 
https://github.com/vim/vim/commit/3780c11267415ff57f261fcd3e1dea0c2c9d8dd0
Author: Enno <konf...@users.noreply.github.com>
Date:   Wed Nov 6 20:14:49 2024 +0100

    runtime(compiler): fix typo in cppcheck compiler plugin
    
    closes: https://github.com/vim/vim/issues/16002
    
    Signed-off-by: Enno <konf...@users.noreply.github.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/compiler/cppcheck.vim b/runtime/compiler/cppcheck.vim
index 20c906f41..d6fc0d687 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. (twins...@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')? '\' : '/'
 

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1t8ljD-001xDO-3x%40256bit.org.

Raspunde prin e-mail lui