# HG changeset patch # User Bram Moolenaar # Date 1596392103 -7200 # Node ID 6af96a5f09f0f27f3d30d554c66bf15ed18605de # Parent 38f947771cdfeaa60c44ea40021a80440ce267bd patch 8.2.1358: Vim9: test fails with +dnd is not available Commit: https://github.com/vim/vim/commit/434d72cbf2170d54cb4f8acbe995a9a55cceb92a Author: Bram Moolenaar Date: Sun Aug 2 20:03:25 2020 +0200 patch 8.2.1358: Vim9: test fails with +dnd is not available Problem: Vim9: test fails with +dnd is not available. Solution: Add condition. diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -470,7 +470,12 @@ def Test_assignment_failure() call CheckDefFailure(['let $VAR = 5'], 'E1016: Cannot declare an environment variable:') call CheckScriptFailure(['vim9script', 'let $ENV = "xxx"'], 'E1016:') - call CheckDefFailure(['let @~ = 5'], 'E1066:') + if has('dnd') + call CheckDefFailure(['let @~ = 5'], 'E1066:') + else + call CheckDefFailure(['let @~ = 5'], 'E354:') + call CheckDefFailure(['@~ = 5'], 'E354:') + endif call CheckDefFailure(['let @a = 5'], 'E1066:') call CheckDefFailure(['let @/ = "x"'], 'E1066:') call CheckScriptFailure(['vim9script', 'let @a = "abc"'], 'E1066:') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1358, +/**/ 1357, /**/ 1356,