Mercurial > vim
view ci/if_ver-cmd.vim @ 22602:2c77ec32deeb v8.2.1849
patch 8.2.1849: Vim9: garbage collection frees block-local variables
Commit: https://github.com/vim/vim/commit/ed234f24f3a6d697ba9b786d0bc74d4682bfdf47
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 15 20:42:20 2020 +0200
patch 8.2.1849: Vim9: garbage collection frees block-local variables
Problem: Vim9: garbage collection frees block-local variables.
Solution: Mark all script variables as used.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Oct 2020 20:45: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>)