view ci/if_ver-cmd.vim @ 29355:796198629190 v9.0.0020

patch 9.0.0020: with some completion reading past end of string Commit: https://github.com/vim/vim/commit/f12129f1714f7d2301935bb21d896609bdac221c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 1 19:58:30 2022 +0100 patch 9.0.0020: with some completion reading past end of string Problem: With some completion reading past end of string. Solution: Check the length of the string.
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Jul 2022 21:00: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>)