view ci/if_ver-cmd.vim @ 29098:cff23287478f v8.2.5070

patch 8.2.5070: unnecessary code Commit: https://github.com/vim/vim/commit/b5f0801b1f043b5cf99380f58eca51b75b3236c7 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Jun 9 13:55:28 2022 +0100 patch 8.2.5070: unnecessary code Problem: Unnecessary code. Solution: Remove code that isn't needed. (closes https://github.com/vim/vim/issues/10534)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Jun 2022 15:00:07 +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>)