view ci/if_ver-cmd.vim @ 20881:58137dbee8da v8.2.0992

patch 8.2.0992: Vim9: crash when using :import in the Vim command Commit: https://github.com/vim/vim/commit/101f4810e27e432970bc8809e18f018e1795937f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 16 23:18:51 2020 +0200 patch 8.2.0992: Vim9: crash when using :import in the Vim command Problem: Vim9: crash when using :import in the Vim command. Solution: Give an error when using :import outside of a script. (closes #6271)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Jun 2020 23:30: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>)