view ci/if_ver-cmd.vim @ 22002:c9517003821d v8.2.1550

patch 8.2.1550: Vim9: bufname('%') gives an error Commit: https://github.com/vim/vim/commit/02aaad91094939758e053588dd23ebda467eea29 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 30 21:26:57 2020 +0200 patch 8.2.1550: Vim9: bufname('%') gives an error Problem: Vim9: bufname('%') gives an error. Solution: Only give an error for wrong argument type. (closes https://github.com/vim/vim/issues/6807)
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Aug 2020 21:30:03 +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>)