view ci/if_ver-cmd.vim @ 26939:ae2324aca26b v8.2.3998

patch 8.2.3998: asan error for adding zero to NULL Commit: https://github.com/vim/vim/commit/48824e952f7db8ca657fe20e66456fc19fca6815 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 4 16:05:48 2022 +0000 patch 8.2.3998: asan error for adding zero to NULL Problem: Asan error for adding zero to NULL. Solution: Do not compute pointer if there are no entries.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Jan 2022 17:15:02 +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>)