view ci/if_ver-cmd.vim @ 25274:84d5cda23b34 v8.2.3174

patch 8.2.3174: Vim9: "legacy undo" finds "undo" variable Commit: https://github.com/vim/vim/commit/47bc9c333766ee3d45cb18c583a630e4ad53405a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 17 21:24:56 2021 +0200 patch 8.2.3174: Vim9: "legacy undo" finds "undo" variable Problem: Vim9: "legacy undo" finds "undo" variable. Solution: Do not pass lookup function to find_ex_command(). (closes https://github.com/vim/vim/issues/8563)
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Jul 2021 21:30:04 +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>)