0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0571: MS-Windows: CTRL-C can make Vim exit

Problem:    MS-Windows: CTRL-C can make Vim exit.
Solution:   Check the not-a-term argument.
This commit is contained in:
Bram Moolenaar
2022-09-24 13:10:04 +01:00
parent d3eafdd709
commit f7e7302acb
4 changed files with 8 additions and 8 deletions

View File

@@ -1008,7 +1008,7 @@ common_init(mparm_T *paramp)
* Return TRUE when the --not-a-term argument was found.
*/
int
is_not_a_term()
is_not_a_term(void)
{
return params.not_a_term;
}
@@ -1016,8 +1016,8 @@ is_not_a_term()
/*
* Return TRUE when the --not-a-term argument was found or the GUI is in use.
*/
static int
is_not_a_term_or_gui()
int
is_not_a_term_or_gui(void)
{
return params.not_a_term
#ifdef FEAT_GUI