Problem: Vim9: reading before the start of the line with "$" by itself.
Solution: Do not subtract one when reporting the error.
CheckDefAndScriptSuccess(lines)
CheckDefAndScriptFailure(["var x = $$$"], ['E1002:', 'E15:'], 1)
+ CheckDefAndScriptFailure(["$"], ['E1002:', 'E15:'], 1)
enddef
def Test_expr7_register()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4049,
/**/
4048,
/**/
len = get_env_len(arg);
if (len == 0)
{
- semsg(_(e_syntax_error_at_str), start - 1);
+ semsg(_(e_syntax_error_at_str), start);
return FAIL;
}