Mercurial > vim
view ci/if_ver-cmd.vim @ 25080:146c9720e563 v8.2.3077
patch 8.2.3077: Vim9: an error in a catch block is not reported
Commit: https://github.com/vim/vim/commit/d3d8feeb897a6b956fc82c81448b938a53312d71
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 30 19:54:43 2021 +0200
patch 8.2.3077: Vim9: an error in a catch block is not reported
Problem: Vim9: an error in a catch block is not reported.
Solution: Put the "in catch" flag in the try stack. (closes https://github.com/vim/vim/issues/8478)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Jun 2021 20:00: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>)