view ci/if_ver-cmd.vim @ 30761:c9b31c8eb3b3 v9.0.0715

patch 9.0.0715: wrong argument for append() gives two error messages Commit: https://github.com/vim/vim/commit/801cd35e7e3b21e519e12a1610ee1d721e40893e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 10 16:08:16 2022 +0100 patch 9.0.0715: wrong argument for append() gives two error messages Problem: Wrong argument for append() gives two error messages. Solution: When getting an error for a number argument don't try using it as a string. (closes #11335)
author Bram Moolenaar <Bram@vim.org>
date Mon, 10 Oct 2022 17:15:07 +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>)