Mercurial > vim
view ci/if_ver-cmd.vim @ 22663:0f90c15a4a28 v8.2.1880
patch 8.2.1880: Vim9: asan complains about adding zero to NULL
Commit: https://github.com/vim/vim/commit/af7a9066a956db23a8bc67bc1f82466e3eff55ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 21 16:49:17 2020 +0200
patch 8.2.1880: Vim9: asan complains about adding zero to NULL
Problem: Vim9: Asan complains about adding zero to NULL.
Solution: Check for argument count first.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Oct 2020 17:00:03 +0200 |
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>)