Mercurial > vim
view ci/if_ver-cmd.vim @ 21066:48cfc37fe4fc v8.2.1084
patch 8.2.1084: Lua: registering function has useless code
Commit: https://github.com/vim/vim/commit/7d2ac92ebc36049f9ce2f4ce08b8a80ca212ace2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 29 20:20:33 2020 +0200
patch 8.2.1084: Lua: registering function has useless code
Problem: Lua: registering function has useless code.
Solution: Remove clearing grow arrays.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Jun 2020 20:30: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>)