summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-09 12:29:35 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-09 12:29:35 +0100
commitc9e9c7140994154bb4a29764491d42c001b24596 (patch)
treecf85a4c37ffc7e15d46231f0c9a8ba55c882b2c4 /src/fileio.c
parent0c4dc88a637a5027209aa00226996af84e248636 (diff)
downloadvim-git-c9e9c7140994154bb4a29764491d42c001b24596.tar.gz
patch 8.0.1275: CmdlineLeave autocmd prevents fold from openingv8.0.1275
Problem: CmdlineLeave autocmd prevents fold from opening. (Waivek) Solution: Save and restore KeyTyped. (closes #2305)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 34dcdb6b5..400ad87b1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -9362,6 +9362,7 @@ apply_autocmds_group(
#endif
int did_save_redobuff = FALSE;
save_redo_T save_redo;
+ int save_KeyTyped = KeyTyped;
/*
* Quickly return if there are no autocommands for this event or
@@ -9658,6 +9659,7 @@ apply_autocmds_group(
prof_child_exit(&wait_time);
# endif
#endif
+ KeyTyped = save_KeyTyped;
vim_free(fname);
vim_free(sfname);
--nesting; /* see matching increment above */