Mercurial > vim
view ci/if_ver-cmd.vim @ 22045:47ff9e5be532 v8.2.1572
patch 8.2.1572: Vim9: expand() does not take "true" as argument
Commit: https://github.com/vim/vim/commit/551d25e76545df785a9f62df52f34bc1dd368bfb
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 2 21:37:56 2020 +0200
patch 8.2.1572: Vim9: expand() does not take "true" as argument
Problem: Vim9: expand() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes https://github.com/vim/vim/issues/6819)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Sep 2020 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>)