view ci/if_ver-cmd.vim @ 26203:a968027f8a2c v8.2.3633

patch 8.2.3633: Vim9: line number of lambda is off by one Commit: https://github.com/vim/vim/commit/a755fdbe80bed4897e06028f0044c208e0f9d8cb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 20 21:35:41 2021 +0000 patch 8.2.3633: Vim9: line number of lambda is off by one Problem: Vim9: line number of lambda is off by one. Solution: Add one to the line number. (closes https://github.com/vim/vim/issues/9083)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Nov 2021 22:45:03 +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>)