Mercurial > vim
view ci/if_ver-cmd.vim @ 20140:39a18a0df429 v8.2.0625
patch 8.2.0625: Vim9: confusing error when calling unknown function
Commit: https://github.com/vim/vim/commit/1df8b3fb04ce8732a0be680273c95eb4e9f5e85d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 23 18:13:23 2020 +0200
patch 8.2.0625: Vim9: confusing error when calling unknown function
Problem: Vim9: confusing error when calling unknown function.
Solution: Give error while compiling.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Apr 2020 18: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>)