0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2688: Vim9: crash when using s: for script variable

Problem:    Vim9: crash when using s: for script variable.
Solution:   Pass the end pointer. (closes #8045)
This commit is contained in:
Bram Moolenaar
2021-04-01 21:38:53 +02:00
parent d877a5700f
commit ca51cc0a33
3 changed files with 6 additions and 3 deletions

View File

@@ -2822,7 +2822,7 @@ compile_load(
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;