Mercurial > vim
view ci/if_ver-cmd.vim @ 27867:1b75d767d9e4 v8.2.4459
patch 8.2.4459: Vim9: compiling sort() call fails with unknown arguments
Commit: https://github.com/vim/vim/commit/fa02616718103be3f9e13e26d57905d4eddf836d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 23 21:03:32 2022 +0000
patch 8.2.4459: Vim9: compiling sort() call fails with unknown arguments
Problem: Vim9: compiling sort() call fails with a funcref that has unknown
arguments.
Solution: Do not check the arguments if they are unknown at compile time.
(closes #9835)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Feb 2022 22:15:03 +0100 |
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>)