From 78d77c03de579845fcaa761e7339c93fcd74efb2 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 15 Jun 2023 08:05:26 +0800 Subject: vim-patch:9.0.1631: passing wrong variable type to option gives multiple errors (#24026) Problem: Passing a wrong variable type to an option gives multiple errors. Solution: Bail out early on failure. (closes vim/vim#12504) https://github.com/vim/vim/commit/4c7cb372c17a84c8a35254d93eb37cb854cd39da --- test/old/testdir/test_vimscript.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/old/testdir/test_vimscript.vim') diff --git a/test/old/testdir/test_vimscript.vim b/test/old/testdir/test_vimscript.vim index 598b359f1f..62487ae5d5 100644 --- a/test/old/testdir/test_vimscript.vim +++ b/test/old/testdir/test_vimscript.vim @@ -6997,10 +6997,7 @@ func Test_compound_assignment_operators() call assert_equal(6, &scrolljump) let &scrolljump %= 5 call assert_equal(1, &scrolljump) - " A different error is shown due to a change in implementation of option - " values. - " call assert_fails('let &scrolljump .= "j"', 'E734:') - call assert_fails('let &scrolljump .= "j"', 'E521:') + call assert_fails('let &scrolljump .= "j"', ['E734:', 'E734:']) set scrolljump&vim let &foldlevelstart = 2 -- cgit