summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-09-30 17:30:31 +0200
committerBram Moolenaar <Bram@vim.org>2011-09-30 17:30:31 +0200
commit8f535582ad8fd706502bee619a19bbb29a981d9d (patch)
tree324fb89e20f2d94d5c306fa8f4528c43876a365f /src
parent2369e35b39e4e5d1d586cf808770c4fb91faae72 (diff)
updated for version 7.3.327v7.3.327
Problem: When jumping to a help tag a closed fold doesn't open. Solution: Save and restore KeyTyped. (Yasuhiro Matsumoto)
Diffstat (limited to 'src')
-rw-r--r--src/ex_cmds.c9
-rw-r--r--src/version.c2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 36b0e52281..b433bca406 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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);
diff --git a/src/version.c b/src/version.c
index 02f6b9cd47..cca3eada8b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -710,6 +710,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 327,
+/**/
326,
/**/
325,