patch 9.1.1146: Vim9: wrong context being used when evaluating class member
Problem: Vim9: wrong context being used when evaluating class member
(lifepillar, Ernie Rael)
Solution: Use the correct script context when evaluating a class member
init expression(Yegappan Lakshmanan)
fixes: #14011
fixes: #14402
closes: #15112
closes: #16660
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/vim9.h b/src/vim9.h
index c502ac4..63d7116 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -219,6 +219,8 @@
ISN_CEXPR_AUCMD, // first part of :cexpr isn_arg.number is cmdidx
ISN_CEXPR_CORE, // second part of :cexpr, uses isn_arg.cexpr
+ ISN_SCRIPTCTX_SET, // set script context for expression evaluation
+
ISN_FINISH // end marker in list of instructions
} isntype_T;
@@ -570,6 +572,7 @@
classmember_T classmember;
storeindex_T storeindex;
lockunlock_T lockunlock;
+ sctx_T setsctx;
} isn_arg;
};