view ci/if_ver-cmd.vim @ 27893:8e630053c59c v8.2.4472

patch 8.2.4472: Coverity warns for use of a freed function name Commit: https://github.com/vim/vim/commit/9383a3afb6a2b7ba6a2739a66a68cc8e1162f389 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 25 21:35:17 2022 +0000 patch 8.2.4472: Coverity warns for use of a freed function name Problem: Coverity warns for use of a freed function name. Solution: Only check an autoload name when is prefixed.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 22:45:03 +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>)