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