view ci/if_ver-cmd.vim @ 21674:f303d6a01a3e v8.2.1387

patch 8.2.1387: Vim9: cannot assign to single letter variable with type Commit: https://github.com/vim/vim/commit/95dd9f2571f09a915674133c73b471b0ebbdcdbf Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 7 19:28:08 2020 +0200 patch 8.2.1387: Vim9: cannot assign to single letter variable with type Problem: Vim9: cannot assign to single letter variable with type. Solution: Exclude the colon from the variable name. (closes https://github.com/vim/vim/issues/6647)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Aug 2020 19:30: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>)