Hi.

$ vim -u NONE -i NONE -N -e -c NonExistCommand -c qall
$ echo $?
1

This command exit with exit code 1. I'm thinking this is reasonable to return 
non-zero value into shell, and quit vim properly. But I'm thinking, when the 
NonExistCommand was executed with "silent!", this command should return 0.

$ vim -u NONE -i NONE -N -e -c "silent! NonExistCommand" -c qall

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 @@ 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,

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui