feat(eval/method): partially port v8.1.1925

Adds method call support for all functions in the patch, but it cannot
be fully ported due to missing tests for:

- getcwd(): requires chdir() and Test_chdir_func() from v8.1.1291.

Note that the method call tests for getreg() and getregtype() were
removed in v8.2.1547, which has already been ported, but doesn't seem to
have been replaced with a new test...

This patch also makes getchangelist()'s argument optional (defaults to
the current buffer).

eval.txt includes a typo for gettabwinvar(), which is fixed in
v8.1.1952.
This commit is contained in:
Sean Dewar
2021-08-27 21:09:37 +01:00
parent 6110480c29
commit 3137c7d635
13 changed files with 107 additions and 44 deletions

View File

@@ -137,9 +137,9 @@ return {
garbagecollect={args={0, 1}},
get={args={2, 3}, base=1},
getbufinfo={args={0, 1}},
getbufline={args={2, 3}},
getbufvar={args={2, 3}},
getchangelist={args={1, 1}},
getbufline={args={2, 3}, base=1},
getbufvar={args={2, 3}, base=1},
getchangelist={args={0, 1}, base=1},
getchar={args={0, 1}},
getcharmod={},
getcharsearch={},
@@ -148,30 +148,30 @@ return {
getcmdpos={},
getcmdtype={},
getcmdwintype={},
getcompletion={args={2, 3}},
getcompletion={args={2, 3}, base=1},
getcurpos={},
getcwd={args={0,2}},
getenv={args={1}},
getcwd={args={0, 2}, base=1},
getenv={args={1}, base=1},
getfontname={args={0, 1}},
getfperm={args=1},
getfsize={args=1},
getftime={args=1},
getftype={args=1},
getjumplist={args={0, 2}},
getline={args={1, 2}},
getfperm={args=1, base=1},
getfsize={args=1, base=1},
getftime={args=1, base=1},
getftype={args=1, base=1},
getjumplist={args={0, 2}, base=1},
getline={args={1, 2}, base=1},
getloclist={args={1, 2}},
getmarklist={args={0, 1}},
getmatches={args={0, 1}},
getmousepos={},
getpid={},
getpos={args=1},
getpos={args=1, base=1},
getqflist={args={0, 1}},
getreg={args={0, 3}},
getreg={args={0, 3}, base=1},
getreginfo={args={0, 1}, base=1},
getregtype={args={0, 1}},
gettabinfo={args={0, 1}},
gettabvar={args={2, 3}},
gettabwinvar={args={3, 4}},
getregtype={args={0, 1}, base=1},
gettabinfo={args={0, 1}, base=1},
gettabvar={args={2, 3}, base=1},
gettabwinvar={args={3, 4}, base=1},
gettagstack={args={0, 1}},
getwininfo={args={0, 1}},
getwinpos={args={0, 1}},
@@ -311,7 +311,7 @@ return {
setcharsearch={args=1},
setcmdpos={args=1},
setenv={args=2},
setfperm={args=2},
setfperm={args=2, base=1},
setline={args=2},
setloclist={args={2, 4}},
setmatches={args={1, 2}},