Commit: runtime(compiler): fix typo in cppcheck compiler plugin

0 views
Skip to first unread message

Christian Brabandt

unread,
Nov 6, 2024, 2:30:15 PM11/6/24
to vim...@googlegroups.com
runtime(compiler): fix typo in cppcheck compiler plugin

Commit: https://github.com/vim/vim/commit/3780c11267415ff57f261fcd3e1dea0c2c9d8dd0
Author: Enno <Kon...@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 <Kon...@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. (twin...@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')? '\' : '/'

Reply all
Reply to author
Forward
0 new messages