From 8b778d55993d951a65f8a59843cecd177c707676 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 18 Feb 2016 20:31:34 +0100 Subject: [PATCH] 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) --- src/message.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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, /**/ -- 2.47.2