From: Bram Moolenaar Date: Thu, 18 Feb 2016 19:31:34 +0000 (+0100) Subject: patch 7.4.1347 X-Git-Tag: v7.4.1347 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b778d55993d951a65f8a59843cecd177c707676;p=thirdparty%2Fvim.git patch 7.4.1347 Problem: When there is any error Vim will use a non-zero exit code. Solution: When using ":silent!" do not set the exit code. (Yasuhiro Matsumoto) --- diff --git a/src/message.c b/src/message.c index b3525909f7..6c9dd646cb 100644 --- a/src/message.c +++ b/src/message.c @@ -531,7 +531,8 @@ emsg(char_u *s) return TRUE; called_emsg = TRUE; - ex_exitval = 1; + if (emsg_silent == 0) + ex_exitval = 1; /* * If "emsg_severe" is TRUE: When an error exception is to be thrown, diff --git a/src/version.c b/src/version.c index 315a4142ab..31e15c3350 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1347, /**/ 1346, /**/