summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-15 23:02:04 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-15 23:02:04 +0200
commit8aeec40207b5adcd3a155277dc4f29189343b963 (patch)
tree4c62d41b6474eaddb0d2ad4c088bb6931b39b9ce /src/edit.c
parentea8dcf8346f488786023fd03ec1c013cda243040 (diff)
patch 8.1.2044: no easy way to process postponed workv8.1.2044
Problem: No easy way to process postponed work. (Paul Jolly) Solution: Add the SafeState autocommand event.
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index cc41d49cc7..67141448fa 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1509,6 +1509,11 @@ ins_redraw(int ready) // not busy with something
(linenr_T)(curwin->w_cursor.lnum + 1));
}
+ // Trigger SafeState if nothing is pending.
+ may_trigger_safestate(ready
+ && !ins_compl_active()
+ && !pum_visible());
+
#if defined(FEAT_CONCEAL)
if ((conceal_update_lines
&& (conceal_old_cursor_line != conceal_new_cursor_line