From 8aeec40207b5adcd3a155277dc4f29189343b963 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 15 Sep 2019 23:02:04 +0200 Subject: 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. --- src/edit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/edit.c') 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 -- cgit v1.2.3