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