0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.2044: no easy way to process postponed work

Problem:    No easy way to process postponed work. (Paul Jolly)
Solution:   Add the SafeState autocommand event.
This commit is contained in:
Bram Moolenaar
2019-09-15 23:02:04 +02:00
parent ea8dcf8346
commit 8aeec40207
9 changed files with 126 additions and 11 deletions

View File

@@ -971,6 +971,9 @@ getcmdline_int(
that occurs while typing a command should
cause the command not to be executed. */
// Trigger SafeState if nothing is pending.
may_trigger_safestate(xpc.xp_numfiles <= 0);
cursorcmd(); /* set the cursor on the right spot */
/* Get a character. Ignore K_IGNORE and K_NOP, they should not do