commit | 8b778d55993d951a65f8a59843cecd177c707676 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Feb 18 20:31:34 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Feb 18 20:31:34 2016 +0100 |
tree | da0d746a7c2c755da02f23e58dda09edb4450f14 | |
parent | a1e24b9bc9123ff6dd23e3cac2287a4411ef5572 [diff] [blame] |
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 b352590..6c9dd64 100644 --- a/src/message.c +++ b/src/message.c
@@ -531,7 +531,8 @@ 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,