0
0
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:
Bram Moolenaar
2020-09-27 20:13:03 +02:00
parent ac564082f1
commit d0e1b7103c
4 changed files with 39 additions and 0 deletions

View File

@@ -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);