Skip to content

Commit 8b778d5

Browse files
committed
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)
1 parent a1e24b9 commit 8b778d5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/message.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,8 @@ emsg(char_u *s)
531531
return TRUE;
532532

533533
called_emsg = TRUE;
534-
ex_exitval = 1;
534+
if (emsg_silent == 0)
535+
ex_exitval = 1;
535536

536537
/*
537538
* If "emsg_severe" is TRUE: When an error exception is to be thrown,

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,8 @@ static char *(features[]) =
747747

748748
static int included_patches[] =
749749
{ /* Add new patch number below this line */
750+
/**/
751+
1347,
750752
/**/
751753
1346,
752754
/**/

0 commit comments

Comments
 (0)