view ci/if_ver-cmd.vim @ 32559:fb453aba3d2b v9.0.1611

patch 9.0.1611: v:maxcol can be changed in a :for loop Commit: https://github.com/vim/vim/commit/16d2c02c80e6d4822010816e085cabf91bf91423 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 5 19:46:18 2023 +0100 patch 9.0.1611: v:maxcol can be changed in a :for loop Problem: v:maxcol can be changed in a :for loop. Solution: Check for read-only loop variable. (closes https://github.com/vim/vim/issues/12470)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Jun 2023 21:00:05 +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>)