summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-12 14:52:15 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-12 14:52:15 +0200
commit9698ad7201ca1a3acec69679f1ab8b15323ff406 (patch)
tree2152ad953198c606407f3c600f2ade1b3467a3bf /src/os_win32.c
parent8cad930a259a05a95c7d0c527a5881d5f9a59057 (diff)
downloadvim-git-9698ad7201ca1a3acec69679f1ab8b15323ff406.tar.gz
patch 8.0.0913: MS-Windows: CTRL-C kills shell in terminal windowv8.0.0913
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)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index add83d344..496f95f72 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -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;
}