patch 8.0.1067: try/catch in timer does not prevent it from being stopped
Problem: Using try/catch in timer does not prevent it from being stopped.
Solution: Reset the exception context and use did_emsg instead of
called_emsg.
diff --git a/src/globals.h b/src/globals.h
index 0b887d3..ac2727f 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -182,6 +182,10 @@
#endif
EXTERN int did_emsg; /* set by emsg() when the message
is displayed or thrown */
+#ifdef FEAT_EVAL
+EXTERN int did_uncaught_emsg; /* emsg() was called and did not
+ cause an exception */
+#endif
EXTERN int did_emsg_syntax; /* did_emsg set because of a
syntax error */
EXTERN int called_emsg; /* always set by emsg() */