073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.410
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.410
073263
Problem:    Fold does not open after search when there is a CmdwinLeave
073263
	    autocommand.
073263
Solution:   Restore KeyTyped. (Jacob Niehus)
073263
Files:	    src/ex_getln.c
073263
073263
073263
*** ../vim-7.4.409/src/ex_getln.c	2014-06-25 14:39:35.102348584 +0200
073263
--- src/ex_getln.c	2014-08-17 17:21:38.811022992 +0200
073263
***************
073263
*** 6363,6368 ****
073263
--- 6363,6371 ----
073263
  #ifdef FEAT_RIGHTLEFT
073263
      int			save_cmdmsg_rl = cmdmsg_rl;
073263
  #endif
073263
+ #ifdef FEAT_FOLDING
073263
+     int			save_KeyTyped;
073263
+ #endif
073263
  
073263
      /* Can't do this recursively.  Can't do it when typing a password. */
073263
      if (cmdwin_type != 0
073263
***************
073263
*** 6497,6504 ****
073263
--- 6500,6518 ----
073263
      RedrawingDisabled = i;
073263
  
073263
  # ifdef FEAT_AUTOCMD
073263
+ 
073263
+ #  ifdef FEAT_FOLDING
073263
+     save_KeyTyped = KeyTyped;
073263
+ #  endif
073263
+ 
073263
      /* Trigger CmdwinLeave autocommands. */
073263
      apply_autocmds(EVENT_CMDWINLEAVE, typestr, typestr, FALSE, curbuf);
073263
+ 
073263
+ #  ifdef FEAT_FOLDING
073263
+     /* Restore KeyTyped in case it is modified by autocommands */
073263
+     KeyTyped = save_KeyTyped;
073263
+ #  endif
073263
+ 
073263
  # endif
073263
  
073263
      /* Restore the command line info. */
073263
*** ../vim-7.4.409/src/version.c	2014-08-17 17:05:39.163057796 +0200
073263
--- src/version.c	2014-08-17 17:19:33.011027554 +0200
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     410,
073263
  /**/
073263
073263
-- 
073263
Have you heard about the new Beowulf cluster? It's so fast, it executes
073263
an infinite loop in 6 seconds.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///