summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-03 18:56:53 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-03 18:56:53 +0200
commite28d9b3bd4de2c7288add83ec35dc001ba280617 (patch)
tree9703589a42e63637f98b4799da3f5d5157607d4c /src/structs.h
parent00aaa512d5e775e0db21e251f43d7afb8fca910f (diff)
downloadvim-git-e28d9b3bd4de2c7288add83ec35dc001ba280617.tar.gz
patch 8.2.3091: Vim9: default argument expr. cannot use previous argumentv8.2.3091
Problem: Vim9: default argument expression cannot use previous argument Solution: Correct argument index. (closes #8496)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index d6f4988e7..be4082b93 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1610,6 +1610,8 @@ typedef struct
int uf_dfunc_idx; // only valid if uf_def_status is UF_COMPILED
garray_T uf_args; // arguments, including optional arguments
garray_T uf_def_args; // default argument expressions
+ int uf_args_visible; // normally uf_args.ga_len, less when
+ // compiling default argument expression.
// for :def (for :function uf_ret_type is NULL)
type_T **uf_arg_types; // argument types (count == uf_args.ga_len)