view ci/if_ver-cmd.vim @ 22276:753452747ae5 v8.2.1687

patch 8.2.1687: Vim9: out of bounds error Commit: https://github.com/vim/vim/commit/9b123d859053ad1fb91d38334726b9f24da39930 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 14 22:39:11 2020 +0200 patch 8.2.1687: Vim9: out of bounds error Problem: Vim9: out of bounds error. Solution: Check that cmdidx is not negative.
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Sep 2020 22:45:03 +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>)