Mercurial > vim
comparison src/ex_getln.c @ 18098:a2870e6f5b45 v8.1.2044
patch 8.1.2044: no easy way to process postponed work
Commit: https://github.com/vim/vim/commit/8aeec40207b5adcd3a155277dc4f29189343b963
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 15 23:02:04 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Sep 2019 23:15:03 +0200 |
parents | 5a0d5f8e1778 |
children | 1868ec23360e |
comparison
equal
deleted
inserted
replaced
18097:1608410ff8f3 | 18098:a2870e6f5b45 |
---|---|
968 quit_more = FALSE; /* reset after CTRL-D which had a more-prompt */ | 968 quit_more = FALSE; /* reset after CTRL-D which had a more-prompt */ |
969 | 969 |
970 did_emsg = FALSE; /* There can't really be a reason why an error | 970 did_emsg = FALSE; /* There can't really be a reason why an error |
971 that occurs while typing a command should | 971 that occurs while typing a command should |
972 cause the command not to be executed. */ | 972 cause the command not to be executed. */ |
973 | |
974 // Trigger SafeState if nothing is pending. | |
975 may_trigger_safestate(xpc.xp_numfiles <= 0); | |
973 | 976 |
974 cursorcmd(); /* set the cursor on the right spot */ | 977 cursorcmd(); /* set the cursor on the right spot */ |
975 | 978 |
976 /* Get a character. Ignore K_IGNORE and K_NOP, they should not do | 979 /* Get a character. Ignore K_IGNORE and K_NOP, they should not do |
977 * anything, such as stop completion. */ | 980 * anything, such as stop completion. */ |