view ci/if_ver-cmd.vim @ 32483:933cec0b89dc v9.0.1573

patch 9.0.1573: error for function name has wrong line number Commit: https://github.com/vim/vim/commit/d4a9b7f61475f3166cce92b0bad748e8c1eb51fe Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 23 14:48:42 2023 +0100 patch 9.0.1573: error for function name has wrong line number Problem: Error for function name has wrong line number. Solution: Set the line number before giving the error.
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 May 2023 16:00: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>)