Mercurial > vim
view ci/if_ver-cmd.vim @ 22631:59cd5f8b2ab2 v8.2.1864
patch 8.2.1864: Vim9: no error for wrong list type
Commit: https://github.com/vim/vim/commit/334a8b4bde55e1095533f70616ac1e6ec337c62c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 19 16:07:42 2020 +0200
patch 8.2.1864: Vim9: no error for wrong list type
Problem: Vim9: no error for wrong list type.
Solution: Add flag to indicate a constant. (closes https://github.com/vim/vim/issues/7160)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 19 Oct 2020 16:15: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>)