view ci/if_ver-cmd.vim @ 20239:2135b4641680 v8.2.0675

patch 8.2.0675: Vim9: no support for closures Commit: https://github.com/vim/vim/commit/b84a381c75e50ca0e0a24cc3e152d0c70f8c2c7d Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 1 15:44:29 2020 +0200 patch 8.2.0675: Vim9: no support for closures Problem: Vim9: no support for closures. Solution: Do not re-use stack entries.
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 May 2020 15: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>)