view ci/if_ver-cmd.vim @ 24232:3058ed6db36f v8.2.2657

patch 8.2.2657: Vim9: error message for declaring variable in for loop Commit: https://github.com/vim/vim/commit/522eefd9a247c574a51bfe9bf73467a8dc3bac42 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 26 18:49:22 2021 +0100 patch 8.2.2657: Vim9: error message for declaring variable in for loop Problem: Vim9: error message for declaring variable in for loop. Solution: Clear variables when entering block again. (closes https://github.com/vim/vim/issues/8012)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Mar 2021 19:00:04 +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>)