diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-17 15:51:52 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-17 15:51:52 +0000 |
commit | 3075a45592fe76f2febb6321632a23e352efe949 (patch) | |
tree | 03456a8d38fac32baca2c5157b264f2c759e55c4 /src/structs.h | |
parent | 125ffd21f9601a90b845f1d50c24da0d3938bb59 (diff) | |
download | vim-git-3075a45592fe76f2febb6321632a23e352efe949.tar.gz |
patch 8.2.3609: internal error when ModeChanged is triggered recursivelyv8.2.3609
Problem: Internal error when ModeChanged is triggered when v:event is
already in use.
Solution: Save and restore v:event if needed.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 8ffebf312..7bd1ff775 100644 --- a/src/structs.h +++ b/src/structs.h @@ -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; |