Skip to content

Commit c9e9c71

Browse files
committed
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)
1 parent 0c4dc88 commit c9e9c71

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/fileio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9362,6 +9362,7 @@ apply_autocmds_group(
93629362
#endif
93639363
int did_save_redobuff = FALSE;
93649364
save_redo_T save_redo;
9365+
int save_KeyTyped = KeyTyped;
93659366

93669367
/*
93679368
* Quickly return if there are no autocommands for this event or
@@ -9658,6 +9659,7 @@ apply_autocmds_group(
96589659
prof_child_exit(&wait_time);
96599660
# endif
96609661
#endif
9662+
KeyTyped = save_KeyTyped;
96619663
vim_free(fname);
96629664
vim_free(sfname);
96639665
--nesting; /* see matching increment above */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1275,
764766
/**/
765767
1274,
766768
/**/

0 commit comments

Comments
 (0)