diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-30 10:50:55 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-30 10:50:55 -0700 |
commit | 412c6b971fcd5dadf370161dd2e0cd981c348eb8 (patch) | |
tree | a6261fb43e5d1393fc4fc9762224711b79c658f6 | |
parent | 24b6f70ab129e2c0a8b3b03ea02b54b03ee8e664 (diff) | |
parent | e70fdd00f1cd96c364fe894af61ee5947991414e (diff) | |
download | rneovim-412c6b971fcd5dadf370161dd2e0cd981c348eb8.tar.gz rneovim-412c6b971fcd5dadf370161dd2e0cd981c348eb8.tar.bz2 rneovim-412c6b971fcd5dadf370161dd2e0cd981c348eb8.zip |
Merge branch 'fix_20726' into 20231130_mix
-rw-r--r-- | src/nvim/state.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/state.c b/src/nvim/state.c index 199003b61c..d6a037ffd6 100644 --- a/src/nvim/state.c +++ b/src/nvim/state.c @@ -29,6 +29,8 @@ # include "state.c.generated.h" #endif +size_t hack_keyfix = 0; + void state_enter(VimState *s) FUNC_ATTR_NONNULL_ALL { @@ -82,6 +84,18 @@ getkey: } } + // Hacky "fix" for https://github.com/neovim/neovim/issues/20726 + if (key == 3) { + hack_keyfix ++; + if (hack_keyfix == 100) { + got_int = 0; + hack_keyfix = 0; + goto getkey; + } + } else { + hack_keyfix = 0; + } + if (key == K_EVENT) { // An event handler may use the value of reg_executing. // Clear it if it should be cleared when getting the next character. |