# HG changeset patch # User Bram Moolenaar # Date 1294165550 -3600 # Node ID 763272b18e4ffe717ebb58827315badc09824e86 # Parent faf4b09c396e8572e84eab84eeb60ea0f3785529 updated for version 7.3.098 Problem: Function that ignores error still causes called_emsg to be set. E.g. when expand() fails the status line is disabled. Solution: Move check for emsg_not_now() up. (James Vega) diff --git a/src/message.c b/src/message.c --- a/src/message.c +++ b/src/message.c @@ -569,6 +569,10 @@ emsg(s) int severe; #endif + /* Skip this if not giving error messages at the moment. */ + if (emsg_not_now()) + return TRUE; + called_emsg = TRUE; ex_exitval = 1; @@ -581,10 +585,6 @@ emsg(s) emsg_severe = FALSE; #endif - /* Skip this if not giving error messages at the moment. */ - if (emsg_not_now()) - return TRUE; - if (!emsg_off || vim_strchr(p_debug, 't') != NULL) { #ifdef FEAT_EVAL diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 98, +/**/ 97, /**/ 96,