0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -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

@@ -6793,11 +6793,8 @@ nv_esc(cmdarg_T *cap)
&& !VIsual_active
&& no_reason)
{
int out_redir = !stdout_isatty
#ifdef FEAT_GUI
&& !gui.in_use
#endif
;
int out_redir = !stdout_isatty && !is_not_a_term_or_gui();
// The user may accidentally do "vim file | grep word" and then
// CTRL-C doesn't show anything. With a changed buffer give the
// message on stderr. Without any changes might as well exit.