0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.0.0913: MS-Windows: CTRL-C kills shell in terminal window

Problem:    MS-Windows: CTRL-C kills shell in terminal window instead of the
            command running in the shell.
Solution:   Make CTRL-C only send a CTRL_C_EVENT and have CTRL-BREAK kill the
            job. (partly by Yasuhiro Matsumoto, closes #1962)
This commit is contained in:
Bram Moolenaar
2017-08-12 14:52:15 +02:00
parent 8cad930a25
commit 9698ad7201
5 changed files with 18 additions and 4 deletions

View File

@@ -6296,6 +6296,7 @@ mch_breakcheck(int force)
#ifndef FEAT_GUI_W32 /* never used */
if (g_fCtrlCPressed || g_fCBrkPressed)
{
ctrl_break_was_pressed = g_fCBrkPressed;
g_fCtrlCPressed = g_fCBrkPressed = FALSE;
got_int = TRUE;
}