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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user