comparison src/edit.c @ 30645:101f08b49ed3 v9.0.0657

patch 9.0.0657: too many #ifdefs Commit: https://github.com/vim/vim/commit/7904fa420eb577274c4c3711295240100167d495 Author: Martin Tournoij <martin@arp242.net> Date: Tue Oct 4 16:28:45 2022 +0100 patch 9.0.0657: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes #11268)
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Oct 2022 17:30:06 +0200
parents 9a6f7e750697
children ea16b081493d
comparison
equal deleted inserted replaced
30644:0c102a723b9a 30645:101f08b49ed3
783 if (echeck_abbr(ESC + ABBR_OFF)) 783 if (echeck_abbr(ESC + ABBR_OFF))
784 break; 784 break;
785 // FALLTHROUGH 785 // FALLTHROUGH
786 786
787 case Ctrl_C: // End input mode 787 case Ctrl_C: // End input mode
788 #ifdef FEAT_CMDWIN
789 if (c == Ctrl_C && cmdwin_type != 0) 788 if (c == Ctrl_C && cmdwin_type != 0)
790 { 789 {
791 // Close the cmdline window. 790 // Close the cmdline window.
792 cmdwin_result = K_IGNORE; 791 cmdwin_result = K_IGNORE;
793 got_int = FALSE; // don't stop executing autocommands et al. 792 got_int = FALSE; // don't stop executing autocommands et al.
794 nomove = TRUE; 793 nomove = TRUE;
795 goto doESCkey; 794 goto doESCkey;
796 } 795 }
797 #endif
798 #ifdef FEAT_JOB_CHANNEL 796 #ifdef FEAT_JOB_CHANNEL
799 if (c == Ctrl_C && bt_prompt(curbuf)) 797 if (c == Ctrl_C && bt_prompt(curbuf))
800 { 798 {
801 if (invoke_prompt_interrupt()) 799 if (invoke_prompt_interrupt())
802 { 800 {
1194 else // location list window 1192 else // location list window
1195 do_cmdline_cmd((char_u *)".ll"); 1193 do_cmdline_cmd((char_u *)".ll");
1196 break; 1194 break;
1197 } 1195 }
1198 #endif 1196 #endif
1199 #ifdef FEAT_CMDWIN
1200 if (cmdwin_type != 0) 1197 if (cmdwin_type != 0)
1201 { 1198 {
1202 // Execute the command in the cmdline window. 1199 // Execute the command in the cmdline window.
1203 cmdwin_result = CAR; 1200 cmdwin_result = CAR;
1204 goto doESCkey; 1201 goto doESCkey;
1205 } 1202 }
1206 #endif
1207 #ifdef FEAT_JOB_CHANNEL 1203 #ifdef FEAT_JOB_CHANNEL
1208 if (bt_prompt(curbuf)) 1204 if (bt_prompt(curbuf))
1209 { 1205 {
1210 invoke_prompt_callback(); 1206 invoke_prompt_callback();
1211 if (!bt_prompt(curbuf)) 1207 if (!bt_prompt(curbuf))