mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07: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:
parent
850f91c51c
commit
c3c409c70f
@ -1784,8 +1784,7 @@ append( {lnum}, {string}) Number append {string} below line {lnum}
|
||||
append({lnum}, {list}) Number append lines {list} below line {lnum}
|
||||
argc() Number number of files in the argument list
|
||||
argidx() Number current index in the argument list
|
||||
arglistid( [{winnr} [, {tabnr}]])
|
||||
Number argument list id
|
||||
arglistid([{winnr} [, {tabnr}]]) Number argument list id
|
||||
argv({nr}) String {nr} entry of the argument list
|
||||
argv() List the argument list
|
||||
assert_equal({exp}, {act} [, {msg}]) none assert {exp} equals {act}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user