mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.327
Problem: When jumping to a help tag a closed fold doesn't open. Solution: Save and restore KeyTyped. (Yasuhiro Matsumoto)
This commit is contained in:
parent
2369e35b39
commit
8f535582ad
@ -5508,6 +5508,9 @@ ex_help(eap)
|
|||||||
int len;
|
int len;
|
||||||
char_u *lang;
|
char_u *lang;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef FEAT_FOLDING
|
||||||
|
int old_KeyTyped = KeyTyped;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (eap != NULL)
|
if (eap != NULL)
|
||||||
{
|
{
|
||||||
@ -5671,6 +5674,12 @@ ex_help(eap)
|
|||||||
if (!p_im)
|
if (!p_im)
|
||||||
restart_edit = 0; /* don't want insert mode in help file */
|
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)
|
if (tag != NULL)
|
||||||
do_tag(tag, DT_HELP, 1, FALSE, TRUE);
|
do_tag(tag, DT_HELP, 1, FALSE, TRUE);
|
||||||
|
|
||||||
|
@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
327,
|
||||||
/**/
|
/**/
|
||||||
326,
|
326,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user