view ci/if_ver-cmd.vim @ 27694:4af6dc1cc1c8 v8.2.4373

patch 8.2.4373: expression test fails Commit: https://github.com/vim/vim/commit/c87aa34dfd68e95e4b1aac96d2274fcd672753ac Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 13 20:46:18 2022 +0000 patch 8.2.4373: expression test fails Problem: Expression test fails. Solution: Make the test work with latest Vim9 syntax.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Feb 2022 22:00:02 +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>)