comparison src/edit.c @ 14103:d053ec57d886 v8.1.0069

patch 8.1.0069: cannot handle pressing CTRL-C in a prompt buffer commit https://github.com/vim/vim/commit/0e5979a6d491f68c4a8c86fab489016919329a6b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 17 19:36:33 2018 +0200 patch 8.1.0069: cannot handle pressing CTRL-C in a prompt buffer Problem: Cannot handle pressing CTRL-C in a prompt buffer. Solution: Add prompt_setinterrupt().
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Jun 2018 19:45:06 +0200
parents a9d94f10ecef
children 2ad722003b36
comparison
equal deleted inserted replaced
14102:6919feb4b26e 14103:d053ec57d886
1012 /* Close the cmdline window. */ 1012 /* Close the cmdline window. */
1013 cmdwin_result = K_IGNORE; 1013 cmdwin_result = K_IGNORE;
1014 got_int = FALSE; /* don't stop executing autocommands et al. */ 1014 got_int = FALSE; /* don't stop executing autocommands et al. */
1015 nomove = TRUE; 1015 nomove = TRUE;
1016 goto doESCkey; 1016 goto doESCkey;
1017 }
1018 #endif
1019 #ifdef FEAT_JOB_CHANNEL
1020 if (c == Ctrl_C && bt_prompt(curbuf))
1021 {
1022 if (invoke_prompt_interrupt())
1023 {
1024 if (!bt_prompt(curbuf))
1025 // buffer changed to a non-prompt buffer, get out of
1026 // Insert mode
1027 goto doESCkey;
1028 break;
1029 }
1017 } 1030 }
1018 #endif 1031 #endif
1019 1032
1020 #ifdef UNIX 1033 #ifdef UNIX
1021 do_intr: 1034 do_intr: