aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-15 09:08:51 +0800
committerGitHub <noreply@github.com>2023-01-15 09:08:51 +0800
commit2f32b1996744b8ad4ab00f11e09f17c27ad7d866 (patch)
treeaccbe9dcbb1db8add95f4d0588cb395b88d9c860
parent9dd590327334d2e0f0fb6eed06b36f337528489e (diff)
downloadrneovim-2f32b1996744b8ad4ab00f11e09f17c27ad7d866.tar.gz
rneovim-2f32b1996744b8ad4ab00f11e09f17c27ad7d866.tar.bz2
rneovim-2f32b1996744b8ad4ab00f11e09f17c27ad7d866.zip
vim-patch:8.2.0188: Check commands don't work well with Vim9 script (#21809)
Problem: Check commands don't work well with Vim9 script. Solution: Improve constant expression handling. https://github.com/vim/vim/commit/7f829cab356d63b8e59559285593777a66bcc02b Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/testdir/check.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
index a188f7afa1..680a59006b 100644
--- a/src/nvim/testdir/check.vim
+++ b/src/nvim/testdir/check.vim
@@ -1,6 +1,8 @@
source shared.vim
source term_util.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)
@@ -8,7 +10,7 @@ func CheckFeature(name)
" throw 'Checking for non-existent feature ' .. a:name
" endif
if !has(a:name)
- throw 'Skipped: ' .. a:name .. ' feature missing'
+ MissingFeature a:name
endif
endfunc