From: Bram Moolenaar Date: Thu, 9 Nov 2017 11:29:35 +0000 (+0100) Subject: patch 8.0.1275: CmdlineLeave autocmd prevents fold from opening X-Git-Tag: v8.0.1275 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9e9c7140994154bb4a29764491d42c001b24596;p=vim 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) --- 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 */ diff --git a/src/version.c b/src/version.c index 7f519fbe8..abac386c9 100644 --- a/src/version.c +++ b/src/version.c @@ -761,6 +761,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1275, /**/ 1274, /**/