view ci/if_ver-cmd.vim @ 25802:5ef704de7709 v8.2.3436

patch 8.2.3436: check for optional bool type has confusing return type Commit: https://github.com/vim/vim/commit/a29856fcdc41541c607437629c1c1f45951100a4 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 13 21:36:27 2021 +0200 patch 8.2.3436: check for optional bool type has confusing return type Problem: Check for optional bool type has confusing return type. Solution: Explicitly return OK.
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 Sep 2021 21:45:04 +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>)