patch 8.2.2725: Vim9: message about compiling is wrong when using try/catch
Problem: Vim9: message about compiling is wrong when using try/catch.
Solution: Store the compiling flag with the message. (closes #8071)
diff --git a/src/structs.h b/src/structs.h
index f0296c1..dd80215 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -971,11 +971,12 @@
typedef struct msglist msglist_T;
struct msglist
{
+ msglist_T *next; // next of several messages in a row
char *msg; // original message, allocated
char *throw_msg; // msg to throw: usually original one
char_u *sfile; // value from estack_sfile(), allocated
long slnum; // line number for "sfile"
- msglist_T *next; // next of several messages in a row
+ int msg_compiling; // saved value of estack_compiling
};
/*