Hi. If help file include some folds and type ":help foo" that is in the fold, it don't open the folds.
do_tag() is calling foldOpenCursor() in tag.c:342. But ex_help() call win_split() and split call some autocmds. Then KeyTyped is reset before calling do_tag(). Below is a patch. Please check and include. https://gist.github.com/1234574 diff -r 5e84f6567623 src/ex_cmds.c --- a/src/ex_cmds.c Wed Sep 21 20:09:42 2011 +0200 +++ b/src/ex_cmds.c Thu Sep 22 20:28:15 2011 +0900 @@ -5508,6 +5508,9 @@ int len; char_u *lang; #endif +#ifdef FEAT_FOLDING + int old_KeyTyped = KeyTyped; +#endif if (eap != NULL) { @@ -5671,6 +5674,13 @@ 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. + * do_tag must open folds on cursor. + */ + KeyTyped = old_KeyTyped; +#endif if (tag != NULL) do_tag(tag, DT_HELP, 1, FALSE, TRUE); -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
