view ci/if_ver-cmd.vim @ 28431:4fbdd4ce9edb v8.2.4740

patch 8.2.4740: when expand() fails there is no error message Commit: https://github.com/vim/vim/commit/575445200bd35283191ecd7a0d596b37c5b477a4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 12 12:54:11 2022 +0100 patch 8.2.4740: when expand() fails there is no error message Problem: When expand() fails there is no error message. Solution: When 'verbose' is set give an error message.
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Apr 2022 14: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>)