diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/eval.lua | 14 | ||||
| -rw-r--r-- | src/nvim/testdir/test_bufwintabinfo.vim | 2 | ||||
| -rw-r--r-- | src/nvim/testdir/test_escaped_glob.vim | 6 | ||||
| -rw-r--r-- | src/nvim/testdir/test_getvar.vim | 4 | ||||
| -rw-r--r-- | src/nvim/testdir/test_glob2regpat.vim | 2 | ||||
| -rw-r--r-- | src/nvim/testdir/test_tagjump.vim | 2 | 
6 files changed, 15 insertions, 15 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 83a72cc233..cc38a0734e 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -172,15 +172,15 @@ return {      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}}, +    gettagstack={args={0, 1}, base=1}, +    getwininfo={args={0, 1}, base=1}, +    getwinpos={args={0, 1}, base=1},      getwinposx={},      getwinposy={}, -    getwinvar={args={2, 3}}, -    glob={args={1, 4}}, -    glob2regpat={args=1}, -    globpath={args={2, 5}}, +    getwinvar={args={2, 3}, base=1}, +    glob={args={1, 4}, base=1}, +    glob2regpat={args=1, base=1}, +    globpath={args={2, 5}, base=2},      has={args=1},      has_key={args=2, base=1},      haslocaldir={args={0,2}}, diff --git a/src/nvim/testdir/test_bufwintabinfo.vim b/src/nvim/testdir/test_bufwintabinfo.vim index b0258547b8..bb672cf0ec 100644 --- a/src/nvim/testdir/test_bufwintabinfo.vim +++ b/src/nvim/testdir/test_bufwintabinfo.vim @@ -77,7 +77,7 @@ function Test_getbufwintabinfo()      call assert_equal('green', winlist[2].variables.signal)      call assert_equal(w4_id, winlist[3].winid) -    let winfo = getwininfo(w5_id)[0] +    let winfo = w5_id->getwininfo()[0]      call assert_equal(2, winfo.tabnr)      call assert_equal([], getwininfo(3)) diff --git a/src/nvim/testdir/test_escaped_glob.vim b/src/nvim/testdir/test_escaped_glob.vim index 2bfd82c296..1a4fd8bdab 100644 --- a/src/nvim/testdir/test_escaped_glob.vim +++ b/src/nvim/testdir/test_escaped_glob.vim @@ -16,7 +16,7 @@ function Test_glob()    " Execute these commands in the sandbox, so that using the shell fails.    " Setting 'shell' to an invalid name causes a memory leak.    sandbox call assert_equal("", glob('Xxx\{')) -  sandbox call assert_equal("", glob('Xxx\$')) +  sandbox call assert_equal("", 'Xxx\$'->glob())    w! Xxx\{    " } to fix highlighting    w! Xxx\$ @@ -28,7 +28,7 @@ endfunction  function Test_globpath()    sandbox call assert_equal(expand("sautest/autoload/globone.vim\nsautest/autoload/globtwo.vim"), -  \ globpath('sautest/autoload', 'glob*.vim')) +        \ globpath('sautest/autoload', 'glob*.vim'))    sandbox call assert_equal([expand('sautest/autoload/globone.vim'), expand('sautest/autoload/globtwo.vim')], -  \ globpath('sautest/autoload', 'glob*.vim', 0, 1)) +        \ 'glob*.vim'->globpath('sautest/autoload', 0, 1))  endfunction diff --git a/src/nvim/testdir/test_getvar.vim b/src/nvim/testdir/test_getvar.vim index e9868c7887..5a96548893 100644 --- a/src/nvim/testdir/test_getvar.vim +++ b/src/nvim/testdir/test_getvar.vim @@ -12,8 +12,8 @@ func Test_var()    let def_str = "Chance"    call assert_equal('Dance', getwinvar(1, 'var_str'))    call assert_equal('Dance', getwinvar(1, 'var_str', def_str)) -  call assert_equal({'var_str': 'Dance'}, getwinvar(1, '')) -  call assert_equal({'var_str': 'Dance'}, getwinvar(1, '', def_str)) +  call assert_equal({'var_str': 'Dance'}, 1->getwinvar('')) +  call assert_equal({'var_str': 'Dance'}, 1->getwinvar('', def_str))    unlet w:var_str    call assert_equal('Chance', getwinvar(1, 'var_str', def_str))    call assert_equal({}, getwinvar(1, '')) diff --git a/src/nvim/testdir/test_glob2regpat.vim b/src/nvim/testdir/test_glob2regpat.vim index 354f239ef1..a423a4a9f0 100644 --- a/src/nvim/testdir/test_glob2regpat.vim +++ b/src/nvim/testdir/test_glob2regpat.vim @@ -10,7 +10,7 @@ endfunc  func Test_glob2regpat_valid()    call assert_equal('^foo\.', glob2regpat('foo.*')) -  call assert_equal('^foo.$', glob2regpat('foo?')) +  call assert_equal('^foo.$', 'foo?'->glob2regpat())    call assert_equal('\.vim$', glob2regpat('*.vim'))    call assert_equal('^[abc]$', glob2regpat('[abc]'))    call assert_equal('^foo bar$', glob2regpat('foo\ bar')) diff --git a/src/nvim/testdir/test_tagjump.vim b/src/nvim/testdir/test_tagjump.vim index 0fa7f85f0d..15182893e9 100644 --- a/src/nvim/testdir/test_tagjump.vim +++ b/src/nvim/testdir/test_tagjump.vim @@ -316,7 +316,7 @@ func Test_getsettagstack()    enew | only    call settagstack(1, {'items' : []})    call assert_equal(0, gettagstack(1).length) -  call assert_equal([], gettagstack(1).items) +  call assert_equal([], 1->gettagstack().items)    " Error cases    call assert_equal({}, gettagstack(100))    call assert_equal(-1, settagstack(100, {'items' : []}))  | 
