]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.410 v7.4.410
authorBram Moolenaar <Bram@vim.org>
Sun, 17 Aug 2014 15:24:07 +0000 (17:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 Aug 2014 15:24:07 +0000 (17:24 +0200)
Problem:    Fold does not open after search when there is a CmdwinLeave
            autocommand.
Solution:   Restore KeyTyped. (Jacob Niehus)

src/ex_getln.c
src/version.c

index fcc1d600a67c8d358a6839f33a8be633cfbe8396..6ca707e43265f1c896709f8108314901ed375352 100644 (file)
@@ -6363,6 +6363,9 @@ ex_window()
 #ifdef FEAT_RIGHTLEFT
     int                        save_cmdmsg_rl = cmdmsg_rl;
 #endif
+#ifdef FEAT_FOLDING
+    int                        save_KeyTyped;
+#endif
 
     /* Can't do this recursively.  Can't do it when typing a password. */
     if (cmdwin_type != 0
@@ -6497,8 +6500,19 @@ ex_window()
     RedrawingDisabled = i;
 
 # ifdef FEAT_AUTOCMD
+
+#  ifdef FEAT_FOLDING
+    save_KeyTyped = KeyTyped;
+#  endif
+
     /* Trigger CmdwinLeave autocommands. */
     apply_autocmds(EVENT_CMDWINLEAVE, typestr, typestr, FALSE, curbuf);
+
+#  ifdef FEAT_FOLDING
+    /* Restore KeyTyped in case it is modified by autocommands */
+    KeyTyped = save_KeyTyped;
+#  endif
+
 # endif
 
     /* Restore the command line info. */
index f7084a7cd684d57ad2f46f4ad73d8c6cba6a6347..7126b8b9ed8d5afabb744805ba3df6bd974c1b78 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    410,
 /**/
     409,
 /**/