1
0
forked from aniani/vim

patch 9.0.0082: cannot interrupt global command from command line

Problem:    Cannot interrupt global command from command line.
Solution:   Reset got_int in another place. (closes #10739)
This commit is contained in:
zeertzjq
2022-07-26 17:48:13 +01:00
committed by Bram Moolenaar
parent c2842adfb2
commit 3cfae39b08
4 changed files with 33 additions and 3 deletions

View File

@@ -1786,8 +1786,6 @@ getcmdline_int(
// that occurs while typing a command should
// cause the command not to be executed.
got_int = FALSE; // avoid infinite Ctrl-C loop in Ex mode
// Trigger SafeState if nothing is pending.
may_trigger_safestate(xpc.xp_numfiles <= 0);
@@ -1850,7 +1848,8 @@ getcmdline_int(
&& firstc != '@'
#endif
#ifdef FEAT_EVAL
&& !break_ctrl_c
// do clear got_int in Ex mode to avoid infinite Ctrl-C loop
&& (!break_ctrl_c || exmode_active)
#endif
&& !global_busy)
got_int = FALSE;