view ci/if_ver-cmd.vim @ 19908:473ceb7f65e2 v8.2.0510

patch 8.2.0510: Coverity complains about using uninitialized variable Commit: https://github.com/vim/vim/commit/8d4ed11da635a1abe0ef2d795b4d48824c54d0e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 4 14:50:32 2020 +0200 patch 8.2.0510: Coverity complains about using uninitialized variable Problem: Coverity complains about using uninitialized variable. Solution: Assign a value to "scol". Move code inside NULL check.
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 Apr 2020 15:00:03 +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>)