From 31e2546cc908aa17aa68f7812eec5d4f08fbbc55 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 26 Mar 2021 18:55:10 -0400 Subject: [PATCH] vim-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. https://github.com/vim/vim/commit/c61cb8bfe1ec2cc50e6edd195cae2a3cd93d6590 --- src/nvim/testdir/test_eval_stuff.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/testdir/test_eval_stuff.vim b/src/nvim/testdir/test_eval_stuff.vim index ff50d53d86..73b57f302e 100644 --- a/src/nvim/testdir/test_eval_stuff.vim +++ b/src/nvim/testdir/test_eval_stuff.vim @@ -24,7 +24,7 @@ endfunc func Test_for_invalid() call assert_fails("for x in 99", 'E714:') - call assert_fails("for x in 'asdf'", 'E714:') + call assert_fails("for x in function('winnr')", 'E714:') call assert_fails("for x in {'a': 9}", 'E714:') if 0