]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.327 v7.3.327
authorBram Moolenaar <Bram@vim.org>
Fri, 30 Sep 2011 15:30:31 +0000 (17:30 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 30 Sep 2011 15:30:31 +0000 (17:30 +0200)
Problem:    When jumping to a help tag a closed fold doesn't open.
Solution:   Save and restore KeyTyped. (Yasuhiro Matsumoto)

src/ex_cmds.c
src/version.c

index 36b0e522812731cece3852737e1f47eae59fc904..b433bca406dde4c0fa09bf0b0cc96437bf25ca62 100644 (file)
@@ -5508,6 +5508,9 @@ ex_help(eap)
     int                len;
     char_u     *lang;
 #endif
+#ifdef FEAT_FOLDING
+    int                old_KeyTyped = KeyTyped;
+#endif
 
     if (eap != NULL)
     {
@@ -5671,6 +5674,12 @@ ex_help(eap)
     if (!p_im)
        restart_edit = 0;           /* don't want insert mode in help file */
 
+#ifdef FEAT_FOLDING
+    /* Restore KeyTyped, setting 'filetype=help' may reset it.
+     * It is needed for do_tag top open folds under the cursor. */
+    KeyTyped = old_KeyTyped;
+#endif
+
     if (tag != NULL)
        do_tag(tag, DT_HELP, 1, FALSE, TRUE);
 
index 02f6b9cd47a2d61d085cdcb2a04a6eda306f841c..cca3eada8bed0cf40399ad9ccdde12ee7527943d 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    327,
 /**/
     326,
 /**/