Patch 8.2.1468

3 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 16, 2020, 12:43:28 PM8/16/20
to vim...@googlegroups.com

Patch 8.2.1468
Problem: Vim9: invalid error for missing white space.
Solution: Don't skip over white space after index. (closes #6718)
Files: src/eval.c, src/testdir/test_vim9_expr.vim


*** ../vim-8.2.1467/src/eval.c 2020-08-16 17:33:29.513887840 +0200
--- src/eval.c 2020-08-16 18:41:45.771288909 +0200
***************
*** 3624,3630 ****
clear_tv(&var2);
return FAIL;
}
! *arg = skipwhite(*arg + 1); // skip the ']'
}

if (evaluate)
--- 3624,3630 ----
clear_tv(&var2);
return FAIL;
}
! *arg = *arg + 1; // skip over the ']'
}

if (evaluate)
*** ../vim-8.2.1467/src/testdir/test_vim9_expr.vim 2020-08-16 17:33:29.517887810 +0200
--- src/testdir/test_vim9_expr.vim 2020-08-16 18:41:15.463511583 +0200
***************
*** 827,832 ****
--- 827,839 ----
echo len('xxx') == 3
END
CheckScriptSuccess(lines)
+
+ lines =<< trim END
+ vim9script
+ let line = 'abc'
+ echo line[1] =~ '\w'
+ END
+ CheckScriptSuccess(lines)
enddef

func Test_expr4_fails()
*** ../vim-8.2.1467/src/version.c 2020-08-16 18:29:31.480642573 +0200
--- src/version.c 2020-08-16 18:39:42.396194694 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1468,
/**/

--
Don't be humble ... you're not that great.
-- Golda Meir

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages