summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_bufwintabinfo.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-17 22:40:15 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-17 22:40:15 +0100
commita9e9679de3ef082ee29868ab404283dfc53258f2 (patch)
treedbbddc9c73cbc409668aecc7fea3e123fb4fa46f /src/testdir/test_bufwintabinfo.vim
parent91b65e49440e77222a65b6f868507453239f409b (diff)
patch 8.2.0019: cannot number of lines of another bufferv8.2.0019
Problem: Cannot number of lines of another buffer. Solution: Add "linecount" to getbufinfo(). (Yasuhiro Matsumoto, closes #5370)
Diffstat (limited to 'src/testdir/test_bufwintabinfo.vim')
-rw-r--r--src/testdir/test_bufwintabinfo.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_bufwintabinfo.vim b/src/testdir/test_bufwintabinfo.vim
index bebaca6281..d61670b670 100644
--- a/src/testdir/test_bufwintabinfo.vim
+++ b/src/testdir/test_bufwintabinfo.vim
@@ -154,3 +154,13 @@ function Test_getbufinfo_lastused()
call assert_equal(getbufinfo('Xtestfile2')[0].lastused, 7654321)
call test_settime(0)
endfunc
+
+func Test_getbufinfo_lines()
+ new Xfoo
+ call setline(1, ['a', 'bc', 'd'])
+ let bn = bufnr('%')
+ hide
+ call assert_equal(3, getbufinfo(bn)[0]["linecount"])
+ edit Xfoo
+ bw!
+endfunc