mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.1762: when a timer uses :stopinsert completion isn't stopped
Problem: When a timer uses :stopinsert Insert mode completion isn't stopped. (Stanley Chan) Solution: Call ins_compl_prep(ESC).
This commit is contained in:
@@ -587,8 +587,11 @@ edit(
|
||||
if (stop_insert_mode)
|
||||
{
|
||||
// Insert mode ended, possibly from a callback.
|
||||
if (c != K_IGNORE && c != K_NOP)
|
||||
vungetc(c);
|
||||
count = 0;
|
||||
nomove = TRUE;
|
||||
ins_compl_prep(ESC);
|
||||
goto doESCkey;
|
||||
}
|
||||
} while (c == K_IGNORE || c == K_NOP);
|
||||
|
Reference in New Issue
Block a user