mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.2275: CTRL-C not recognized in Mintty
Problem: CTRL-C not recognized in Mintty. Solution: Recognize the modifyOtherKeys code ending in "u". (Christian Brabandt, closes #7575)
This commit is contained in:
parent
2f91e2f8da
commit
02faa944c6
7
src/ui.c
7
src/ui.c
@ -1014,11 +1014,14 @@ fill_input_buf(int exit_on_error UNUSED)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If a CTRL-C was typed, remove it from the buffer and set
|
* If a CTRL-C was typed, remove it from the buffer and set
|
||||||
* got_int. Also recognize CTRL-C with modifyOtherKeys set.
|
* got_int. Also recognize CTRL-C with modifyOtherKeys set, in two
|
||||||
|
* forms.
|
||||||
*/
|
*/
|
||||||
if (ctrl_c_interrupts && (inbuf[inbufcount] == 3
|
if (ctrl_c_interrupts && (inbuf[inbufcount] == 3
|
||||||
|| (len >= 9 && STRNCMP(inbuf + inbufcount,
|
|| (len >= 9 && STRNCMP(inbuf + inbufcount,
|
||||||
"\033[27;5;99~", 10) == 0)))
|
"\033[27;5;99~", 10) == 0)
|
||||||
|
|| (len >= 7 && STRNCMP(inbuf + inbufcount,
|
||||||
|
"\033[99;5u", 7) == 0)))
|
||||||
{
|
{
|
||||||
// remove everything typed before the CTRL-C
|
// remove everything typed before the CTRL-C
|
||||||
mch_memmove(inbuf, inbuf + inbufcount, (size_t)(len + 1));
|
mch_memmove(inbuf, inbuf + inbufcount, (size_t)(len + 1));
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2275,
|
||||||
/**/
|
/**/
|
||||||
2274,
|
2274,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user