view ci/if_ver-cmd.vim @ 24379:8d5e4b50c2e1 v8.2.2730

patch 8.2.2730: Coverity complains about not restoring character Commit: https://github.com/vim/vim/commit/c9605f0595173bca0f158f2782de950ac6bed147 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 6 21:29:32 2021 +0200 patch 8.2.2730: Coverity complains about not restoring character Problem: Coverity complains about not restoring character. Solution: Also restore the character in case of an error.
author Bram Moolenaar <Bram@vim.org>
date Tue, 06 Apr 2021 21:30:05 +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>)