diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-24 13:10:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-24 13:10:04 +0100 |
commit | f7e7302acb20b6ef6caa0740da1450b677ac91fb (patch) | |
tree | cce4273089bee09073096659b89e75a2d83ab55f /src/main.c | |
parent | d3eafdd7098e5e47a3e93474a624cb0ba1a874c9 (diff) |
patch 9.0.0571: MS-Windows: CTRL-C can make Vim exitv9.0.0571
Problem: MS-Windows: CTRL-C can make Vim exit.
Solution: Check the not-a-term argument.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 6875ee5d38..c0059c1933 100644 --- a/src/main.c +++ b/src/main.c @@ -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 |