Skip to content

Commit c61cb8b

Browse files
committed
patch 8.2.2659: eval test fails because for loop on string works
Problem: Eval test fails because for loop on string works. Solution: Check looping over function reference fails.
1 parent 74e54fc commit c61cb8b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/testdir/test_eval_stuff.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ endfunc
6666

6767
func Test_for_invalid()
6868
call assert_fails("for x in 99", 'E714:')
69-
call assert_fails("for x in 'asdf'", 'E714:')
69+
call assert_fails("for x in function('winnr')", 'E714:')
7070
call assert_fails("for x in {'a': 9}", 'E714:')
7171

7272
if 0

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2659,
753755
/**/
754756
2658,
755757
/**/

0 commit comments

Comments
 (0)