Mercurial > vim
diff src/testdir/check.vim @ 19259:77cce0439714 v8.2.0188
patch 8.2.0188: Check commands don't work well with Vim9 script
Commit: https://github.com/vim/vim/commit/7f829cab356d63b8e59559285593777a66bcc02b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 31 22:12:41 2020 +0100
patch 8.2.0188: Check commands don't work well with Vim9 script
Problem: Check commands don't work well with Vim9 script.
Solution: Improve constant expression handling.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 31 Jan 2020 22:15:03 +0100 |
parents | 97d534e17874 |
children | a4b65930a0dc |
line wrap: on
line diff
--- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -1,10 +1,12 @@ source shared.vim +command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing' + " Command to check for the presence of a feature. command -nargs=1 CheckFeature call CheckFeature(<f-args>) func CheckFeature(name) if !has(a:name) - throw 'Skipped: ' .. a:name .. ' feature missing' + MissingFeature a:name endif endfunc