Mercurial > vim
comparison src/structs.h @ 21646:a640bc762196 v8.2.1373
patch 8.2.1373: Vim9: no error for assigning to non-existing script var
Commit: https://github.com/vim/vim/commit/f9b2b49663226235f94f08230fe9023caf80a6e9
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 5 14:34:14 2020 +0200
patch 8.2.1373: Vim9: no error for assigning to non-existing script var
Problem: Vim9: no error for assigning to non-existing script var.
Solution: Check that in Vim9 script the variable was defined. (closes https://github.com/vim/vim/issues/6630)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Aug 2020 14:45:03 +0200 |
parents | 1c4d4aa22b37 |
children | 35921b7fc07a |
comparison
equal
deleted
inserted
replaced
21645:5c2e5c71c08c | 21646:a640bc762196 |
---|---|
1592 proftime_T uf_tml_wait; // start wait time for current line | 1592 proftime_T uf_tml_wait; // start wait time for current line |
1593 int uf_tml_idx; // index of line being timed; -1 if none | 1593 int uf_tml_idx; // index of line being timed; -1 if none |
1594 int uf_tml_execed; // line being timed was executed | 1594 int uf_tml_execed; // line being timed was executed |
1595 # endif | 1595 # endif |
1596 sctx_T uf_script_ctx; // SCTX where function was defined, | 1596 sctx_T uf_script_ctx; // SCTX where function was defined, |
1597 // used for s: variables | 1597 // used for s: variables; sc_version changed |
1598 // for :function | |
1599 int uf_script_ctx_version; // original sc_version of SCTX | |
1598 int uf_refcount; // reference count, see func_name_refcount() | 1600 int uf_refcount; // reference count, see func_name_refcount() |
1599 | 1601 |
1600 funccall_T *uf_scoped; // l: local variables for closure | 1602 funccall_T *uf_scoped; // l: local variables for closure |
1601 | 1603 |
1602 char_u *uf_name_exp; // if "uf_name[]" starts with SNR the name with | 1604 char_u *uf_name_exp; // if "uf_name[]" starts with SNR the name with |