diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-07-08 22:37:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-07-08 22:37:34 +0200 |
commit | c577d813b7978345dec4310b2d8f5d5624a681f6 (patch) | |
tree | 662bfda985692d778505c74d5c512201e1265362 /src/structs.h | |
parent | 11e79bb04ea635d180dd79b1d5cbc755b56e66e1 (diff) | |
download | vim-git-c577d813b7978345dec4310b2d8f5d5624a681f6.tar.gz |
patch 8.0.0702: an error in a timer can make Vim unusablev8.0.0702
Problem: An error in a timer can make Vim unusable.
Solution: Don't set the error flag or exception from a timer. Stop a timer
if it causes an error 3 out of 3 times. Discard an exception
caused inside a timer.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 0fbc5a5bd..c3f120008 100644 --- a/src/structs.h +++ b/src/structs.h @@ -3243,6 +3243,7 @@ struct timer_S long tr_interval; /* msec */ char_u *tr_callback; /* allocated */ partial_T *tr_partial; + int tr_emsg_count; #endif }; |