changeset 8106:58505cbea7e5 v7.4.1347

commit https://github.com/vim/vim/commit/8b778d55993d951a65f8a59843cecd177c707676 Author: Bram Moolenaar <Bram@vim.org> 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)
author Christian Brabandt <cb@256bit.org>
date Thu, 18 Feb 2016 20:45:04 +0100
parents d6870d311f01
children 925df1bbc05c
files src/message.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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,