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:
@@ -6216,6 +6216,9 @@ find_help_tags(
|
||||
*/
|
||||
if (*s == '\'' && s > arg && *arg == '\'')
|
||||
break;
|
||||
/* Also '{' and '}'. */
|
||||
if (*s == '}' && s > arg && *arg == '{')
|
||||
break;
|
||||
}
|
||||
*d = NUL;
|
||||
|
||||
|
@@ -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']
|
||||
|
@@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1900,
|
||||
/**/
|
||||
1899,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user