view ci/if_ver-cmd.vim @ 30289:085406413994 v9.0.0480

patch 9.0.0480: cannot use a :def varargs function with substitute() Commit: https://github.com/vim/vim/commit/abd58d8aee7fec2b9e07c829eb925b0a1f7118db Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Sep 16 16:06:32 2022 +0100 patch 9.0.0480: cannot use a :def varargs function with substitute() Problem: Cannot use a :def varargs function with substitute(). Solution: Use has_varargs(). (closes https://github.com/vim/vim/issues/11146)
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Sep 2022 17:15: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>)