Mercurial > vim
view ci/if_ver-cmd.vim @ 29782:35cbea786334 v9.0.0230
patch 9.0.0230: no error for comma missing in list in :def function
Commit: https://github.com/vim/vim/commit/2984ed31d92f7da19b3dc86b37764c55669dd7c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 20 14:51:17 2022 +0100
patch 9.0.0230: no error for comma missing in list in :def function
Problem: No error for comma missing in list in :def function.
Solution: Check for missing comma. (closes https://github.com/vim/vim/issues/10943)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Aug 2022 16:00: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>)