0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0095: cannot specify exit code for :cquit

Problem:    Cannot specify exit code for :cquit.
Solution:   Add optional argument. (Thinca, Yegappan Lakshmanan, closes #5442)
This commit is contained in:
Bram Moolenaar
2020-01-06 21:47:21 +01:00
parent e73b38f8e1
commit 1860bde9d3
5 changed files with 41 additions and 5 deletions

View File

@@ -4920,8 +4920,8 @@ ex_quit(exarg_T *eap)
static void
ex_cquit(exarg_T *eap UNUSED)
{
getout(1); // this does not always pass on the exit code to the Manx
// compiler. why?
// this does not always pass on the exit code to the Manx compiler. why?
getout(eap->addr_count > 0 ? (int)eap->line2 : EXIT_FAILURE);
}
/*