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.
diff --git a/src/structs.h b/src/structs.h
index 0fbc5a5..c3f1200 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -3243,6 +3243,7 @@
long tr_interval; /* msec */
char_u *tr_callback; /* allocated */
partial_T *tr_partial;
+ int tr_emsg_count;
#endif
};