view ci/if_ver-cmd.vim @ 22758:48feb3dd0d25 v8.2.1927

patch 8.2.1927: Vim9: get unknown error with an error in a timer function Commit: https://github.com/vim/vim/commit/d66960bf578410e83ef96ad2f4206b26a139d817 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 30 20:46:26 2020 +0100 patch 8.2.1927: Vim9: get unknown error with an error in a timer function Problem: Vim9: get unknown error with an error in a timer function. Solution: Use did_emsg instead of called_emsg. (closes https://github.com/vim/vim/issues/7231)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Oct 2020 21:00: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>)