diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 12:16:33 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 14:16:16 +0800 |
commit | 7ce2acd59be89e5e6d2ac778ad074a9ae42951cd (patch) | |
tree | 3e1c882297afabac76ed2de1a22b68e174d52556 /src/nvim/getchar.c | |
parent | a0b912c6ecd4bbbcf3ebdf7c1d4e60acaa7019cb (diff) | |
download | rneovim-7ce2acd59be89e5e6d2ac778ad074a9ae42951cd.tar.gz rneovim-7ce2acd59be89e5e6d2ac778ad074a9ae42951cd.tar.bz2 rneovim-7ce2acd59be89e5e6d2ac778ad074a9ae42951cd.zip |
vim-patch:8.1.2053: SafeStateAgain not triggered if callback uses feedkeys()
Problem: SafeStateAgain not triggered if callback uses feedkeys().
Solution: Check for safe state in the input loop. Make log messages easier
to find. Add 'S' flag to state().
https://github.com/vim/vim/commit/d103ee78432f9036d243b18dd5aac1263d3b7dc9
Include misc1.c change from patch 8.1.2062.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 957f13b1da..d10e021f14 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -885,7 +885,7 @@ int ins_typebuf(char *str, int noremap, int offset, bool nottyped, bool silent) if (++typebuf.tb_change_cnt == 0) { typebuf.tb_change_cnt = 1; } - state_no_longer_safe(); + state_no_longer_safe("ins_typebuf()"); addlen = (int)strlen(str); @@ -1629,7 +1629,7 @@ int vgetc(void) // Need to process the character before we know it's safe to do something // else. if (c != K_IGNORE) { - state_no_longer_safe(); + state_no_longer_safe("key typed"); } return c; |