view ci/if_ver-cmd.vim @ 20033:2e5e86ff7596 v8.2.0572

patch 8.2.0572: using two lines for free and reset Commit: https://github.com/vim/vim/commit/df1956075d9ff7b5869fb548734bc2a7be2bce44 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 13 18:13:33 2020 +0200 patch 8.2.0572: using two lines for free and reset Problem: Using two lines for free and reset. Solution: Use VIM_CLEAR() instead. (Yegappan Lakshmanan)
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 Apr 2020 18:15: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>)