mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 21:38:19 +00:00
Merge pull request #17102 from zeertzjq/vim-8.2.1762
vim-patch:8.2.1762: when a timer uses :stopinsert completion isn't stopped
This commit is contained in:
@@ -663,8 +663,12 @@ static int insert_execute(VimState *state, int key)
|
||||
InsertState *const s = (InsertState *)state;
|
||||
if (stop_insert_mode) {
|
||||
// Insert mode ended, possibly from a callback.
|
||||
if (key != K_IGNORE && key != K_NOP) {
|
||||
vungetc(key);
|
||||
}
|
||||
s->count = 0;
|
||||
s->nomove = true;
|
||||
ins_compl_prep(ESC);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user