changeset 12796:9d51b8c6b84e v8.0.1275

patch 8.0.1275: CmdlineLeave autocmd prevents fold from opening commit https://github.com/vim/vim/commit/c9e9c7140994154bb4a29764491d42c001b24596 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 9 12:29:35 2017 +0100 patch 8.0.1275: CmdlineLeave autocmd prevents fold from opening Problem: CmdlineLeave autocmd prevents fold from opening. (Waivek) Solution: Save and restore KeyTyped. (closes https://github.com/vim/vim/issues/2305)
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Nov 2017 12:30:05 +0100
parents ab981881d72b
children d3c7adaf2e74
files src/fileio.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1275,
+/**/
     1274,
 /**/
     1273,