mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
vim-patch:7.4.1728
patch 7.4.1728
Problem: The help for functions require a space after the "(".
Solution: Make CTRL-] on a function name ignore the arguments. (Hirohito
Higashi)
81edd171a9
This commit is contained in:

committed by
James McCoy

parent
850f91c51c
commit
c3c409c70f
@@ -4487,6 +4487,12 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
|
||||
|
||||
*d++ = *s;
|
||||
|
||||
// If tag contains "({" or "([", tag terminates at the "(".
|
||||
// This is for help on functions, e.g.: abs({expr}).
|
||||
if (*s == '(' && (s[1] == '{' || s[1] =='[')) {
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* If tag starts with ', toss everything after a second '. Fixes
|
||||
* CTRL-] on 'option'. (would include the trailing '.').
|
||||
|
@@ -27,4 +27,14 @@ func Test_help_tagjump()
|
||||
call assert_equal("help", &filetype)
|
||||
call assert_true(getline('.') =~ "\\*'buflisted'\\*")
|
||||
helpclose
|
||||
|
||||
exec "help! abs({expr})"
|
||||
call assert_equal("help", &filetype)
|
||||
call assert_true(getline('.') =~ '\*abs()\*')
|
||||
helpclose
|
||||
|
||||
exec "help! arglistid([{winnr})"
|
||||
call assert_equal("help", &filetype)
|
||||
call assert_true(getline('.') =~ '\*arglistid()\*')
|
||||
helpclose
|
||||
endfunc
|
||||
|
@@ -76,6 +76,7 @@ static int included_patches[] = {
|
||||
1757,
|
||||
1755,
|
||||
1753,
|
||||
1728,
|
||||
1654,
|
||||
1652,
|
||||
1643,
|
||||
|
Reference in New Issue
Block a user