Karsten Hopp 555633
To: vim_dev@googlegroups.com
Karsten Hopp 555633
Subject: Patch 7.3.327
Karsten Hopp 555633
Fcc: outbox
Karsten Hopp 555633
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 555633
Mime-Version: 1.0
Karsten Hopp 555633
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 555633
Content-Transfer-Encoding: 8bit
Karsten Hopp 555633
------------
Karsten Hopp 555633
Karsten Hopp 555633
Patch 7.3.327
Karsten Hopp 555633
Problem:    When jumping to a help tag a closed fold doesn't open.
Karsten Hopp 555633
Solution:   Save and restore KeyTyped. (Yasuhiro Matsumoto)
Karsten Hopp 555633
Files:	    src/ex_cmds.c
Karsten Hopp 555633
Karsten Hopp 555633
Karsten Hopp 555633
*** ../vim-7.3.326/src/ex_cmds.c	2011-09-14 14:43:21.000000000 +0200
Karsten Hopp 555633
--- src/ex_cmds.c	2011-09-30 17:24:03.000000000 +0200
Karsten Hopp 555633
***************
Karsten Hopp 555633
*** 5508,5513 ****
Karsten Hopp 555633
--- 5508,5516 ----
Karsten Hopp 555633
      int		len;
Karsten Hopp 555633
      char_u	*lang;
Karsten Hopp 555633
  #endif
Karsten Hopp 555633
+ #ifdef FEAT_FOLDING
Karsten Hopp 555633
+     int		old_KeyTyped = KeyTyped;
Karsten Hopp 555633
+ #endif
Karsten Hopp 555633
  
Karsten Hopp 555633
      if (eap != NULL)
Karsten Hopp 555633
      {
Karsten Hopp 555633
***************
Karsten Hopp 555633
*** 5671,5676 ****
Karsten Hopp 555633
--- 5674,5685 ----
Karsten Hopp 555633
      if (!p_im)
Karsten Hopp 555633
  	restart_edit = 0;	    /* don't want insert mode in help file */
Karsten Hopp 555633
  
Karsten Hopp 555633
+ #ifdef FEAT_FOLDING
Karsten Hopp 555633
+     /* Restore KeyTyped, setting 'filetype=help' may reset it.
Karsten Hopp 555633
+      * It is needed for do_tag top open folds under the cursor. */
Karsten Hopp 555633
+     KeyTyped = old_KeyTyped;
Karsten Hopp 555633
+ #endif
Karsten Hopp 555633
+ 
Karsten Hopp 555633
      if (tag != NULL)
Karsten Hopp 555633
  	do_tag(tag, DT_HELP, 1, FALSE, TRUE);
Karsten Hopp 555633
  
Karsten Hopp 555633
*** ../vim-7.3.326/src/version.c	2011-09-30 16:56:00.000000000 +0200
Karsten Hopp 555633
--- src/version.c	2011-09-30 17:24:17.000000000 +0200
Karsten Hopp 555633
***************
Karsten Hopp 555633
*** 711,712 ****
Karsten Hopp 555633
--- 711,714 ----
Karsten Hopp 555633
  {   /* Add new patch number below this line */
Karsten Hopp 555633
+ /**/
Karsten Hopp 555633
+     327,
Karsten Hopp 555633
  /**/
Karsten Hopp 555633
Karsten Hopp 555633
-- 
Karsten Hopp 555633
Q. What happens to programmers when they die?
Karsten Hopp 555633
A: MS-Windows programmers are reinstalled.  C++ programmers become undefined,
Karsten Hopp 555633
   anyone who refers to them will die as well.  Java programmers reincarnate
Karsten Hopp 555633
   after being garbage collected.
Karsten Hopp 555633
Karsten Hopp 555633
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 555633
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 555633
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 555633
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///