comparison src/evalfunc.c @ 19730:fe8ba2f82f59 v8.2.0421

patch 8.2.0421: interrupting with CTRL-C does not always work Commit: https://github.com/vim/vim/commit/9645e2d9fc8a591f1db30383caccf71d40e0810c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 20 20:48:49 2020 +0100 patch 8.2.0421: interrupting with CTRL-C does not always work Problem: Interrupting with CTRL-C does not always work. Solution: Recognize CTRL-C while modifyOtherKeys is set.
author Bram Moolenaar <Bram@vim.org>
date Fri, 20 Mar 2020 21:00:05 +0100
parents ad60bc3a8087
children 810eee1b42e3
comparison
equal deleted inserted replaced
19729:bc91817dda84 19730:fe8ba2f82f59
2470 if (keys_esc != NULL) 2470 if (keys_esc != NULL)
2471 { 2471 {
2472 if (lowlevel) 2472 if (lowlevel)
2473 { 2473 {
2474 #ifdef USE_INPUT_BUF 2474 #ifdef USE_INPUT_BUF
2475 add_to_input_buf(keys, (int)STRLEN(keys)); 2475 int idx;
2476 int len = (int)STRLEN(keys);
2477
2478 for (idx = 0; idx < len; ++idx)
2479 {
2480 // if a CTRL-C was typed, set got_int, similar to what
2481 // happens in fill_input_buf()
2482 if (keys[idx] == 3 && ctrl_c_interrupts && typed)
2483 got_int = TRUE;
2484 add_to_input_buf(keys + idx, 1);
2485 }
2476 #else 2486 #else
2477 emsg(_("E980: lowlevel input not supported")); 2487 emsg(_("E980: lowlevel input not supported"));
2478 #endif 2488 #endif
2479 } 2489 }
2480 else 2490 else