view ci/if_ver-cmd.vim @ 24878:f67773e26cfa v8.2.2977

patch 8.2.2977: crash when using a null function reference Commit: https://github.com/vim/vim/commit/22db0d549f64aa3d8a6e366b70eb8d7e66933b82 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 12 12:16:55 2021 +0200 patch 8.2.2977: crash when using a null function reference Problem: Crash when using a null function reference. (Naohiro Ono) Solution: Check for an invalid function name. (closes https://github.com/vim/vim/issues/8367)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Jun 2021 12: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>)