mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
vim-patch:7.4.1758, 7.4.1759, 7.4.1692 #5640
vim-patch:7.4.1758 Problem: Triggering CursorHoldI when in CTRL-X mode causes problems. Solution: Do not trigger CursorHoldI in CTRL-X mode. Add "!" flag to feedkeys() (test with that didn't work though).245c41070c
vim-patch:7.4.1759 Problem: When using feedkeys() in a timer the inserted characters are not used right away. Solution: Break the wait loop when characters have been added to typebuf. use this for testing CursorHoldI.40b1b5443c
vim-patch:7.4.1692 Problem: feedkeys('i', 'x') gets stuck, waits for a character to be typed. Solution: Behave like ":normal". (Yasuhiro Matsumoto)
This commit is contained in:

committed by
Justin M. Keyes

parent
880ce887ed
commit
7da7ff7c5c
@@ -474,7 +474,9 @@ static int insert_check(VimState *state)
|
||||
InsertState *s = (InsertState *)state;
|
||||
|
||||
// If typed something may trigger CursorHoldI again.
|
||||
if (s->c != K_EVENT) {
|
||||
if (s->c != K_EVENT
|
||||
// but not in CTRL-X mode, a script can't restore the state
|
||||
&& ctrl_x_mode == 0) {
|
||||
did_cursorhold = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user