view ci/if_ver-cmd.vim @ 19914:6babfd2d15e9 v8.2.0513

patch 8.2.0513: reading past allocate memory when using varargs Commit: https://github.com/vim/vim/commit/5d905c2b9612314f6d8616560800665056050adc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 5 18:20:45 2020 +0200 patch 8.2.0513: reading past allocate memory when using varargs Problem: Reading past allocate memory when using varargs. Solution: Fix copying function argument types.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Apr 2020 18:30:36 +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>)