0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.0.1275: CmdlineLeave autocmd prevents fold from opening

Problem:    CmdlineLeave autocmd prevents fold from opening. (Waivek)
Solution:   Save and restore KeyTyped. (closes #2305)
This commit is contained in:
Bram Moolenaar
2017-11-09 12:29:35 +01:00
parent 0c4dc88a63
commit c9e9c71409
2 changed files with 4 additions and 0 deletions

View File

@@ -9362,6 +9362,7 @@ apply_autocmds_group(
#endif #endif
int did_save_redobuff = FALSE; int did_save_redobuff = FALSE;
save_redo_T save_redo; save_redo_T save_redo;
int save_KeyTyped = KeyTyped;
/* /*
* Quickly return if there are no autocommands for this event or * Quickly return if there are no autocommands for this event or
@@ -9658,6 +9659,7 @@ apply_autocmds_group(
prof_child_exit(&wait_time); prof_child_exit(&wait_time);
# endif # endif
#endif #endif
KeyTyped = save_KeyTyped;
vim_free(fname); vim_free(fname);
vim_free(sfname); vim_free(sfname);
--nesting; /* see matching increment above */ --nesting; /* see matching increment above */

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1275,
/**/ /**/
1274, 1274,
/**/ /**/