# HG changeset patch # User Christian Brabandt # Date 1455824704 -3600 # Node ID 58505cbea7e5df7a6e6b694a18db47123cfae2ec # Parent d6870d311f01b64c93c1bd0e73a139c21937e407 commit https://github.com/vim/vim/commit/8b778d55993d951a65f8a59843cecd177c707676 Author: Bram Moolenaar Date: Thu Feb 18 20:31:34 2016 +0100 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1347, +/**/ 1346, /**/ 1345,