Problem: Vim9: crash when using s: for script variable.
Solution: Pass the end pointer. (closes #8045)
# using the function from a compiled function
def TestMore(): string
- return anAlias.GetString('text')
+ var s = s:anAlias.GetString('foo')
+ return s .. anAlias.GetString('bar')
enddef
- assert_equal('text', TestMore())
+ assert_equal('foobar', TestMore())
# error when using a function that isn't exported
assert_fails('anAlias.Compare(1, 2)', 'E1049:')
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2688,
/**/
2687,
/**/
case 'v': res = generate_LOADV(cctx, name, error);
break;
case 's': res = compile_load_scriptvar(cctx, name,
- NULL, NULL, error);
+ NULL, &end, error);
break;
case 'g': if (vim_strchr(name, AUTOLOAD_CHAR) == NULL)
isn_type = ISN_LOADG;