view ci/if_ver-cmd.vim @ 19364:b7abf45d527b v8.2.0240

patch 8.2.0240: using memory after it was freed Commit: https://github.com/vim/vim/commit/408030e8d053fe1c871b2fc366363a30ed98c889 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 10 22:44:32 2020 +0100 patch 8.2.0240: using memory after it was freed Problem: Using memory after it was freed. (Dominique Pelle) Solution: Do not mix converion buffer with other buffer.
author Bram Moolenaar <Bram@vim.org>
date Mon, 10 Feb 2020 22:45:04 +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>)