Mercurial > vim
changeset 23464:a0fc14114576 v8.2.2275
patch 8.2.2275: CTRL-C not recognized in Mintty
Commit: https://github.com/vim/vim/commit/02faa944c69ea22a7a5338135b686dac2c946ca1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 2 16:17:18 2021 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Jan 2021 16:30:03 +0100 |
parents | ce0347ca6bb0 |
children | 58bad104e7ee |
files | src/ui.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ui.c +++ b/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 - * 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 || (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 mch_memmove(inbuf, inbuf + inbufcount, (size_t)(len + 1));