]> granicus.if.org Git - vim/commitdiff
patch 8.0.1275: CmdlineLeave autocmd prevents fold from opening v8.0.1275
authorBram Moolenaar <Bram@vim.org>
Thu, 9 Nov 2017 11:29:35 +0000 (12:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 9 Nov 2017 11:29:35 +0000 (12:29 +0100)
Problem:    CmdlineLeave autocmd prevents fold from opening. (Waivek)
Solution:   Save and restore KeyTyped. (closes #2305)

src/fileio.c
src/version.c

index 34dcdb6b59c288b841216bb8a2b482711b3660fe..400ad87b18ca645b258e6c97b88eb71125856fa5 100644 (file)
@@ -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 */
index 7f519fbe8f188bf8519572f7c5a9286629adc381..abac386c93653e3c110ee3e13f0bf77b15adac85 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1275,
 /**/
     1274,
 /**/