view ci/if_ver-cmd.vim @ 33027:669898c9a6c3 v9.0.1805

patch 9.0.1805: Vim9: problem compiling object method as function call arg Commit: https://github.com/vim/vim/commit/639751d218ef423efef8e9aa0fa9abaff7122186 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Aug 27 19:23:37 2023 +0200 patch 9.0.1805: Vim9: problem compiling object method as function call arg Problem: Vim9: problem compiling object method as function call arg Solution: After a object/class method call, remove the object/class from the stack. closes: #12081 closes: #12929 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 27 Aug 2023 19:30:08 +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>)