From fd0e75683f248070496b0e315052ccfcfe7dee26 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 4 Jan 2011 19:25:50 +0100 Subject: [PATCH] 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) --- src/message.c | 8 ++++---- src/version.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/message.c b/src/message.c index ac81948f2c..930fca117c 100644 --- 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 index 05e50df553..3c12b2fa19 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 98, /**/ 97, /**/