view ci/if_ver-cmd.vim @ 24210:083f07f99e20 v8.2.2646

patch 8.2.2646: Vim9: error for not using string doesn't mentionargument Commit: https://github.com/vim/vim/commit/f28f2ac425600b88da0bdcc12a82cd620f575681 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 22 22:21:26 2021 +0100 patch 8.2.2646: Vim9: error for not using string doesn't mentionargument Problem: Vim9: error for not using string doesn't mention argument. Solution: Add argument number.
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Mar 2021 22:30:03 +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>)