# HG changeset patch # User Bram Moolenaar # Date 1649001602 -7200 # Node ID ebe0eeea501aa022434e03ca2ddd95d0cfdb3c1b # Parent 02297ae362069ba989075ab4b6d1f87f44bcc323 patch 8.2.4676: test fails with different error Commit: https://github.com/vim/vim/commit/292e1b9f681054a1de8fa22315ae6eedd7acb205 Author: Bram Moolenaar Date: Sun Apr 3 16:59:02 2022 +0100 patch 8.2.4676: test fails with different error Problem: Test fails with different error. Solution: Add argument for :elseif. diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim --- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -3025,7 +3025,7 @@ func Test_nested_if_else_errors() " :elseif without :if let code =<< trim END - elseif + elseif 1 END call writefile(code, 'Xtest') call AssertException(['source Xtest'], 'Vim(elseif):E582: :elseif without :if') @@ -3033,7 +3033,7 @@ func Test_nested_if_else_errors() " :elseif without :if let code =<< trim END while 1 - elseif + elseif 1 endwhile END call writefile(code, 'Xtest') @@ -3043,7 +3043,7 @@ func Test_nested_if_else_errors() let code =<< trim END try finally - elseif + elseif 1 endtry END call writefile(code, 'Xtest') @@ -3052,7 +3052,7 @@ func Test_nested_if_else_errors() " :elseif without :if let code =<< trim END try - elseif + elseif 1 endtry END call writefile(code, 'Xtest') @@ -3063,7 +3063,7 @@ func Test_nested_if_else_errors() try throw "a" catch /a/ - elseif + elseif 1 endtry END call writefile(code, 'Xtest') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4676, +/**/ 4675, /**/ 4674,