1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2017-09-06 23:40:10 +02:00
parent 2e49b6b20c
commit e723c42836
5 changed files with 49 additions and 14 deletions

View File

@@ -182,6 +182,10 @@ EXTERN dict_T globvardict; /* Dictionary with g: variables */
#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() */