diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-26 17:48:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-26 17:48:13 +0100 |
commit | 3cfae39b087c2724991d385e5e8ee7d011aa8e99 (patch) | |
tree | 02d735f2d2857d9d94f59efc339128c04d059386 /src/ex_getln.c | |
parent | c2842adfb2ca0637f13e2793fefa18e7818684f9 (diff) |
patch 9.0.0082: cannot interrupt global command from command linev9.0.0082
Problem: Cannot interrupt global command from command line.
Solution: Reset got_int in another place. (closes #10739)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index dd538941ef..7fbfded1f2 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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; |