0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1900

Problem:    Using CTRL-] in the help on "{address}." doesn't work.
Solution:   Recognize an item in {}. (Hirohito Higashi, closes #814)
This commit is contained in:
Bram Moolenaar
2016-06-04 22:31:27 +02:00
parent 8e31fd52ec
commit 28b942a064
3 changed files with 15 additions and 0 deletions

View File

@@ -6216,6 +6216,9 @@ find_help_tags(
*/
if (*s == '\'' && s > arg && *arg == '\'')
break;
/* Also '{' and '}'. */
if (*s == '}' && s > arg && *arg == '{')
break;
}
*d = NUL;

View File

@@ -25,6 +25,16 @@ func Test_help_tagjump()
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*arglistid()\*')
helpclose
exec "help! 'autoindent'."
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ "\\*'autoindent'\\*")
helpclose
exec "help! {address}."
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*{address}\*')
helpclose
endfunc
let s:langs = ['en', 'ab', 'ja']

View File

@@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1900,
/**/
1899,
/**/