view ci/if_ver-cmd.vim @ 29430:90565e49a13e v9.0.0057

patch 9.0.0057: has('patch-xxx') returns true Commit: https://github.com/vim/vim/commit/5154a8880034b7bb94186d37bcecc6ee1a96f732 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 18 20:48:50 2022 +0100 patch 9.0.0057: has('patch-xxx') returns true Problem: has('patch-xxx') returns true. Solution: Check for digit. (closes https://github.com/vim/vim/issues/10751)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Jul 2022 22:00:04 +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>)