diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-23 22:59:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-23 22:59:18 +0100 |
commit | 53989554a44caca0964376d60297f08ec257c53c (patch) | |
tree | 34d2140d4201e015661344b05ffb4c2d9aed97ff /src/globals.h | |
parent | 70188f5b23ea7efec7adaf74e0af797d1bb1afe8 (diff) |
patch 8.2.0035: saving and restoring called_emsg is clumsyv8.2.0035
Problem: Saving and restoring called_emsg is clumsy.
Solution: Count the number of error messages.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h index 9ddb164413..33082d514b 100644 --- a/src/globals.h +++ b/src/globals.h @@ -226,7 +226,7 @@ EXTERN int did_uncaught_emsg; // emsg() was called and did not #endif EXTERN int did_emsg_syntax; // did_emsg set because of a // syntax error -EXTERN int called_emsg; // always set by emsg() +EXTERN int called_emsg; // always incremented by emsg() EXTERN int ex_exitval INIT(= 0); // exit value for ex mode EXTERN int emsg_on_display INIT(= FALSE); // there is an error message EXTERN int rc_did_emsg INIT(= FALSE); // vim_regcomp() called emsg() |