diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-08 21:04:45 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-08 23:11:12 +0800 |
commit | 0d0a6aff6b89e2f48455b7f2f88e0b25d0a2080d (patch) | |
tree | 4bdeb8b5c39cda8a0f4697cc9462ceed30a4fc2a /src/nvim/getchar.c | |
parent | 45ba2e147f7b7d17acb489d64acc257ceded0887 (diff) | |
download | rneovim-0d0a6aff6b89e2f48455b7f2f88e0b25d0a2080d.tar.gz rneovim-0d0a6aff6b89e2f48455b7f2f88e0b25d0a2080d.tar.bz2 rneovim-0d0a6aff6b89e2f48455b7f2f88e0b25d0a2080d.zip |
vim-patch:8.2.0274: hang with combination of feedkeys(), Ex mode and :global
Problem: Hang with combination of feedkeys(), Ex mode and :global.
(Yegappan Lakshmanan)
Solution: Add the pending_exmode_active flag.
https://github.com/vim/vim/commit/9e2bcb5d23138d45a0b6f9c1542b5facc807efe7
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 0f6eddef9d..00372d4f3d 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -2475,6 +2475,11 @@ static int vgetorpeek(bool advance) } tc = c; + // return 0 in normal_check() + if (pending_exmode_active) { + exmode_active = true; + } + // no chars to block abbreviations for typebuf.tb_no_abbr_cnt = 0; |