Mercurial > vim
view ci/if_ver-cmd.vim @ 22216:f9b4576a618b v8.2.1657
patch 8.2.1657: Vim9: no proper error for nested ":def!"
Commit: https://github.com/vim/vim/commit/8b848cafb0a88f8d8e8f46caa8d67431b4faa374
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 10 22:28:01 2020 +0200
patch 8.2.1657: Vim9: no proper error for nested ":def!"
Problem: Vim9: no proper error for nested ":def!".
Solution: Check for "!". (closes https://github.com/vim/vim/issues/6920)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Sep 2020 22:30:03 +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>)