view ci/if_ver-cmd.vim @ 21755:3b312e56e2b8 v8.2.1427

patch 8.2.1427: Vim9: cannot use a range with marks in :def function Commit: https://github.com/vim/vim/commit/7c5ad34878a338f1db57337b5ca9f68c0c39424e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 15:48:55 2020 +0200 patch 8.2.1427: Vim9: cannot use a range with marks in :def function Problem: Vim9: cannot use a range with marks in :def function. Solution: Parse range after colon. (closes https://github.com/vim/vim/issues/6686)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 16:00:06 +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>)