view ci/if_ver-cmd.vim @ 25634:27cb2e79ccde v8.2.3353

patch 8.2.3353: Vim9: type of argument for negate not checked at compile time Commit: https://github.com/vim/vim/commit/cd6b4f300189b4920f7ee7f0204338e91210674b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 15 20:36:28 2021 +0200 patch 8.2.3353: Vim9: type of argument for negate not checked at compile time Problem: Vim9: type of argument for negate not checked at compile time. Solution: Add a compile time check.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Aug 2021 20: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>)