aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
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/globals.h
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/globals.h')
-rw-r--r--src/nvim/globals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index 8d3269451d..6443759a39 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -670,6 +670,7 @@ EXTERN bool ins_at_eol INIT(= false); // put cursor after eol when
EXTERN bool no_abbr INIT(= true); // true when no abbreviations loaded
EXTERN int mapped_ctrl_c INIT(= 0); // Modes where CTRL-C is mapped.
+EXTERN bool ctrl_c_interrupts INIT(= true); // CTRL-C sets got_int
EXTERN cmdmod_T cmdmod; // Ex command modifiers