aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler/cppcheck.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-09 08:23:55 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-11-09 08:23:59 +0800
commit32566dc1c3e85e9743f25b6e6a622f63646b5b4f (patch)
tree52978498b8fbdc3a4882098e4bf3e9218f077df3 /runtime/compiler/cppcheck.vim
parent5a27d02584656f35d757c01f10a1d3c88910c519 (diff)
downloadrneovim-32566dc1c3e85e9743f25b6e6a622f63646b5b4f.tar.gz
rneovim-32566dc1c3e85e9743f25b6e6a622f63646b5b4f.tar.bz2
rneovim-32566dc1c3e85e9743f25b6e6a622f63646b5b4f.zip
vim-patch:3780c11: runtime(compiler): fix typo in cppcheck compiler plugin
closes: vim/vim#16002 https://github.com/vim/vim/commit/3780c11267415ff57f261fcd3e1dea0c2c9d8dd0 Co-authored-by: Enno <Konfekt@users.noreply.github.com>
Diffstat (limited to 'runtime/compiler/cppcheck.vim')
-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')? '\' : '/'