view ci/if_ver-cmd.vim @ 23576:4cd173b3d572 v8.2.2330

patch 8.2.2330: Vim9: crash when using :trow in a not executed block Commit: https://github.com/vim/vim/commit/9e1d9e3473f852735ffd605a0fa4d224b81a4f0c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 11 20:17:34 2021 +0100 patch 8.2.2330: Vim9: crash when using :trow in a not executed block Problem: Vim9: crash when using :trow in a not executed block. Solution: Don't generate the instruction when skipping. (closes https://github.com/vim/vim/issues/7659)
author Bram Moolenaar <Bram@vim.org>
date Mon, 11 Jan 2021 20:30:04 +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>)