Mercurial > vim
view ci/if_ver-cmd.vim @ 19637:8de319d1b82c v8.2.0375
patch 8.2.0375: Coverity warning for not using return value
Commit: https://github.com/vim/vim/commit/8210693795d6d0d51bf5b70674d4539cdde0330b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 13 14:34:38 2020 +0100
patch 8.2.0375: Coverity warning for not using return value
Problem: Coverity warning for not using return value.
Solution: Move error message to separate function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 13 Mar 2020 14:45:04 +0100 |
parents | 27ff44268da5 |
children |
line wrap: on
line source
" Provide 'PrintVer' command to print the interface versions. func s:print_ver(lang, ...) if has(a:lang) exec a:lang join(a:000) else echo 'N/A' endif echo '' endfunc command -nargs=+ PrintVer call <SID>print_ver(<f-args>)