1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2021-04-05 22:27:37 +02:00
parent 0d351a04e1
commit e8c4660a55
5 changed files with 50 additions and 7 deletions

View File

@@ -971,11 +971,12 @@ typedef struct {
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
};
/*