diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 290de034d7..52945f4c6a 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -6707,6 +6707,7 @@ static bool apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, proftime_T wait_time; bool did_save_redobuff = false; save_redo_T save_redo; + const int save_KeyTyped = KeyTyped; // Quickly return if there are no autocommands for this event or // autocommands are blocked. @@ -6966,6 +6967,7 @@ static bool apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, restore_funccal(save_funccalp); if (do_profiling == PROF_YES) prof_child_exit(&wait_time); + KeyTyped = save_KeyTyped; xfree(fname); xfree(sfname); --nesting; /* see matching increment above */ |