view ci/if_ver-cmd.vim @ 26123:56d1d2cb4ad5 v8.2.3594

patch 8.2.3594: xxd code is a bit difficult to understand Commit: https://github.com/vim/vim/commit/786e05beb5bf4a50cffacd0968f1409aa6af3c6b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 14 13:46:05 2021 +0000 patch 8.2.3594: xxd code is a bit difficult to understand Problem: Xxd code is a bit difficult to understand. Solution: Move some lines to a separate function. (closes https://github.com/vim/vim/issues/9037)
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Nov 2021 15:00:02 +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>)