view ci/if_ver-cmd.vim @ 29865:4291eb97e479 v9.0.0271

patch 9.0.0271: using INIT() in non-header files Commit: https://github.com/vim/vim/commit/9b7d2a959646560f5770329f4428c4739eed4656 Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Aug 26 10:33:54 2022 +0100 patch 9.0.0271: using INIT() in non-header files Problem: Using INIT() in non-header files. Solution: Remove INIT(). (closes https://github.com/vim/vim/issues/10981)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 11:45:04 +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>)