diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-02 16:17:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-02 16:17:18 +0100 |
commit | 02faa944c69ea22a7a5338135b686dac2c946ca1 (patch) | |
tree | 193df4f7c86586fd81fb7c50064e7726a7ae73e4 /src/ui.c | |
parent | 2f91e2f8da572123e53ae7579dde57c750137def (diff) | |
download | vim-git-02faa944c69ea22a7a5338135b686dac2c946ca1.tar.gz |
patch 8.2.2275: CTRL-C not recognized in Minttyv8.2.2275
Problem: CTRL-C not recognized in Mintty.
Solution: Recognize the modifyOtherKeys code ending in "u". (Christian
Brabandt, closes #7575)
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)); |