summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-05 14:34:14 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-05 14:34:14 +0200
commitf9b2b49663226235f94f08230fe9023caf80a6e9 (patch)
treef34be82de9372deb871b09a572157d7dcfefed6e /src/structs.h
parentfdac71c5075062f97f77044e9619fa5c907e0327 (diff)
downloadvim-git-f9b2b49663226235f94f08230fe9023caf80a6e9.tar.gz
patch 8.2.1373: Vim9: no error for assigning to non-existing script varv8.2.1373
Problem: Vim9: no error for assigning to non-existing script var. Solution: Check that in Vim9 script the variable was defined. (closes #6630)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h
index 7e34d8099..a80de6a71 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1594,7 +1594,9 @@ typedef struct
int uf_tml_execed; // line being timed was executed
# endif
sctx_T uf_script_ctx; // SCTX where function was defined,
- // used for s: variables
+ // used for s: variables; sc_version changed
+ // for :function
+ int uf_script_ctx_version; // original sc_version of SCTX
int uf_refcount; // reference count, see func_name_refcount()
funccall_T *uf_scoped; // l: local variables for closure