view ci/if_ver-cmd.vim @ 31614:f3c7e573b7be v9.0.1139

patch 9.0.1139: cannot create a new object in a compiled function Commit: https://github.com/vim/vim/commit/46ab925937d04c208d905cfb50bd8ffcae11e466 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 3 14:01:21 2023 +0000 patch 9.0.1139: cannot create a new object in a compiled function Problem: Cannot create a new object in a compiled function. Solution: Compile the instructins to create a new object.
author Bram Moolenaar <Bram@vim.org>
date Tue, 03 Jan 2023 15:15: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>)