1
0
forked from aniani/vim

patch 8.0.0702: an error in a timer can make Vim unusable

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.
This commit is contained in:
Bram Moolenaar
2017-07-08 22:37:34 +02:00
parent 11e79bb04e
commit c577d813b7
5 changed files with 50 additions and 10 deletions

View File

@@ -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
};