aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-30 13:11:35 +0800
committerGitHub <noreply@github.com>2022-04-30 13:11:35 +0800
commit2ba539f449a95f38463a61b189e203a5fe306fc0 (patch)
tree03469caff9c6c1d0cc8da4338f51cc28236a6d9a /src/nvim/ex_cmds.c
parent7df25a1372fde01d9498ddef349a0b7851045cc7 (diff)
downloadrneovim-2ba539f449a95f38463a61b189e203a5fe306fc0.tar.gz
rneovim-2ba539f449a95f38463a61b189e203a5fe306fc0.tar.bz2
rneovim-2ba539f449a95f38463a61b189e203a5fe306fc0.zip
fix(input): only disable mapped CTRL-C interrupts when getting input (#18310)
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index cdd27aebc7..918510bbd0 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4661,7 +4661,6 @@ void global_exe(char_u *cmd)
linenr_T old_lcount; // b_ml.ml_line_count before the command
buf_T *old_buf = curbuf; // remember what buffer we started in
linenr_T lnum; // line number according to old situation
- int save_mapped_ctrl_c = mapped_ctrl_c;
// Set current position only once for a global command.
// If global_busy is set, setpcmark() will not do anything.
@@ -4670,8 +4669,6 @@ void global_exe(char_u *cmd)
// When the command writes a message, don't overwrite the command.
msg_didout = true;
- // Disable CTRL-C mapping, let it interrupt (potentially long output).
- mapped_ctrl_c = 0;
sub_nsubs = 0;
sub_nlines = 0;
@@ -4684,7 +4681,6 @@ void global_exe(char_u *cmd)
os_breakcheck();
}
- mapped_ctrl_c = save_mapped_ctrl_c;
global_busy = 0;
if (global_need_beginline) {
beginline(BL_WHITE | BL_FIX);