comparison src/gui_photon.c @ 21570:f260c1411833 v8.2.1335

patch 8.2.1335: CTRL-C in the GUI doesn't interrupt Commit: https://github.com/vim/vim/commit/4e1d8bd79b87b120bd40afe0eba54a419f8c3aee Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 1 13:10:14 2020 +0200 patch 8.2.1335: CTRL-C in the GUI doesn't interrupt Problem: CTRL-C in the GUI doesn't interrupt. (Sergey Vlasov) Solution: Recognize "C" with CTRL modifier as CTRL-C. (issue https://github.com/vim/vim/issues/6565)
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Aug 2020 13:15:04 +0200
parents fcccc29bd386
children 7334bf933510
comparison
equal deleted inserted replaced
21569:bbb0e366528f 21570:f260c1411833
594 else 594 else
595 { 595 {
596 string[ len++ ] = ch; 596 string[ len++ ] = ch;
597 } 597 }
598 598
599 if (len == 1 && ((ch == Ctrl_C && ctrl_c_interrupts) 599 // Check if the key interrupts.
600 || ch == intr_char)) 600 {
601 { 601 int int_ch = check_for_interrupt(ch, modifiers);
602 trash_input_buf(); 602
603 got_int = TRUE; 603 if (int_ch != NUL)
604 {
605 ch = int_ch;
606 string[0] = ch;
607 len = 1;
608 trash_input_buf();
609 }
604 } 610 }
605 611
606 if (len == 1 && string[0] == CSI) 612 if (len == 1 && string[0] == CSI)
607 { 613 {
608 // Turn CSI into K_CSI. 614 // Turn CSI into K_CSI.