From 20354dbd750dc0ad9911db19f02655ec63dd29b9 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 13 Sep 2018 22:48:29 -0400 Subject: vim-patch:8.0.1275: CmdlineLeave autocmd prevents fold from opening Problem: CmdlineLeave autocmd prevents fold from opening. (Waivek) Solution: Save and restore KeyTyped. (closes vim/vim#2305) https://github.com/vim/vim/commit/c9e9c7140994154bb4a29764491d42c001b24596 --- src/nvim/fileio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 */ -- cgit