aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-13 22:48:29 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-13 23:08:16 -0400
commit20354dbd750dc0ad9911db19f02655ec63dd29b9 (patch)
tree0f2a4ee0de8cc2b87091151319f9544beca695c3 /src/nvim/fileio.c
parentae8515a5448d65856388f5104044e58702f82b1e (diff)
downloadrneovim-20354dbd750dc0ad9911db19f02655ec63dd29b9.tar.gz
rneovim-20354dbd750dc0ad9911db19f02655ec63dd29b9.tar.bz2
rneovim-20354dbd750dc0ad9911db19f02655ec63dd29b9.zip
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
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c2
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 */