commit | 07a65d26e7d76ad22d6ef23b50c0faa25e435e02 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Dec 26 20:09:15 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Dec 26 20:09:15 2020 +0100 |
tree | 535d92696d0537917b742d8655e2d09643a38fb8 | |
parent | cdc40c43f1008bda2f173d3a13606236679e8067 [diff] [blame] |
patch 8.2.2224: Vim9: crash if script reloaded with different variable type Problem: Vim9: crash if script reloaded with different variable type. Solution: Check the type when accessing the variable.
diff --git a/src/vim9compile.c b/src/vim9compile.c index 9d526ab..baf7923 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -1327,6 +1327,7 @@ sref->sref_sid = sid; sref->sref_idx = idx; sref->sref_seq = si->sn_script_seq; + sref->sref_type = type; return OK; }