0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.3609: internal error when ModeChanged is triggered recursively

Problem:    Internal error when ModeChanged is triggered when v:event is
            already in use.
Solution:   Save and restore v:event if needed.
This commit is contained in:
Bram Moolenaar
2021-11-17 15:51:52 +00:00
parent 125ffd21f9
commit 3075a45592
7 changed files with 65 additions and 17 deletions

View File

@@ -4465,3 +4465,8 @@ typedef struct {
#define WHERE_INIT {NULL, 0, 0}
// Struct passed to get_v_event() and restore_v_event().
typedef struct {
int sve_did_save;
hashtab_T sve_hashtab;
} save_v_event_T;