1
0
forked from aniani/vim

patch 8.1.0550: expression evaluation may repeat an error message

Problem:    Expression evaluation may repeat an error message. (Jason
            Franklin)
Solution:   Increment did_emsg and check for the value when giving an error
            for the echo command.
This commit is contained in:
Bram Moolenaar
2018-11-28 20:38:37 +01:00
parent 10efcd5b02
commit 76a6345433
4 changed files with 6 additions and 5 deletions

View File

@@ -636,7 +636,7 @@ emsg(char_u *s)
if (cause_errthrow(s, severe, &ignore) == TRUE)
{
if (!ignore)
did_emsg = TRUE;
++did_emsg;
return TRUE;
}
@@ -689,7 +689,7 @@ emsg(char_u *s)
beep_flush(); /* also includes flush_buffers() */
else
flush_buffers(FLUSH_MINIMAL); // flush internal buffers
did_emsg = TRUE; // flag for DoOneCmd()
++did_emsg; // flag for DoOneCmd()
#ifdef FEAT_EVAL
did_uncaught_emsg = TRUE;
#endif