aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-11-01 18:18:02 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2021-11-26 18:53:12 +0000
commita0c7fff2840d0fc322e049fd06bf1e8e5bd0f38c (patch)
tree6316852b591b859f469adccda0efc2fe1208bdbb /src/nvim/testdir
parent2c185a18cdc7c77aa67e44ba854f8ddd9b3f2de9 (diff)
downloadrneovim-a0c7fff2840d0fc322e049fd06bf1e8e5bd0f38c.tar.gz
rneovim-a0c7fff2840d0fc322e049fd06bf1e8e5bd0f38c.tar.bz2
rneovim-a0c7fff2840d0fc322e049fd06bf1e8e5bd0f38c.zip
vim-patch:8.2.1241: cannot use getbufinfo() as a method
Problem: Cannot use getbufinfo() as a method. Solution: Support using getbufinfo() as a method. (closes vim/vim#6458) https://github.com/vim/vim/commit/6434fc574dfbde11461e70e5a62712370edf38e6
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_bufwintabinfo.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_bufwintabinfo.vim b/src/nvim/testdir/test_bufwintabinfo.vim
index d2c99563d9..a6eb93b4be 100644
--- a/src/nvim/testdir/test_bufwintabinfo.vim
+++ b/src/nvim/testdir/test_bufwintabinfo.vim
@@ -20,6 +20,9 @@ function Test_getbufwintabinfo()
call assert_equal('vim', l[0].variables.editor)
call assert_notequal(-1, index(l[0].windows, '%'->bufwinid()))
+ let l = '%'->getbufinfo()
+ call assert_equal(bufnr('%'), l[0].bufnr)
+
" Test for getbufinfo() with 'bufmodified'
call assert_equal(0, len(getbufinfo({'bufmodified' : 1})))
call setbufline('Xtestfile1', 1, ["Line1"])