view ci/if_ver-cmd.vim @ 26319:8b594193dcb6 v8.2.3690

patch 8.2.3690: Vim9: "filter #pat# cmd" does not work Commit: https://github.com/vim/vim/commit/06bffe836c98a65d270579f08004503ffce9931c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 28 20:24:17 2021 +0000 patch 8.2.3690: Vim9: "filter #pat# cmd" does not work Problem: Vim9: "filter #pat# cmd" does not work. Solution: Do not see #pat# as a comment.
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Nov 2021 21:30: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>)