Mercurial > vim
view ci/if_ver-cmd.vim @ 19858:cf09c0962608 v8.2.0485
patch 8.2.0485: Vim9 script test fails
Commit: https://github.com/vim/vim/commit/01b3862956260fdb5fb81b81a28f4749a92699c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 30 21:28:39 2020 +0200
patch 8.2.0485: Vim9 script test fails
Problem: Vim9 script test fails.
Solution: Stricter condition for adding new local variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 30 Mar 2020 21:30: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>)