diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-13 19:21:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-13 19:21:17 +0100 |
commit | 341a64c9cabff08e4a7dc8cd932a598e12134457 (patch) | |
tree | 0aed36f46d2f83e9b839ccd8270a1e029d738c20 /src/testdir | |
parent | 2be57331524e93da52a0663f4a334d21c05123bb (diff) |
patch 8.0.1519: getchangelist() does not use argument as bufname()v8.0.1519
Problem: Getchangelist() does not use argument as bufname().
Solution: Use get_buf_tv(). (Yegappan Lakshmanan, closes #2641)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_changelist.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_changelist.vim b/src/testdir/test_changelist.vim index 0880fce840..dd6ea9600c 100644 --- a/src/testdir/test_changelist.vim +++ b/src/testdir/test_changelist.vim @@ -9,7 +9,7 @@ func Test_getchangelist() bwipe! enew call assert_equal([], getchangelist(10)) - call assert_equal([[], 0], getchangelist(bufnr('%'))) + call assert_equal([[], 0], getchangelist('%')) call writefile(['line1', 'line2', 'line3'], 'Xfile1.txt') call writefile(['line1', 'line2', 'line3'], 'Xfile2.txt') @@ -23,7 +23,7 @@ func Test_getchangelist() \ {'lnum' : 2, 'col' : 4, 'coladd' : 0}, \ {'lnum' : 4, 'col' : 4, 'coladd' : 0}, \ {'lnum' : 6, 'col' : 4, 'coladd' : 0}], 2], - \ getchangelist(bufnr('%'))) + \ getchangelist('%')) hide edit Xfile2.txt exe "normal 1GOline\<C-G>u1.0" @@ -31,7 +31,7 @@ func Test_getchangelist() call assert_equal([[ \ {'lnum' : 1, 'col' : 6, 'coladd' : 0}, \ {'lnum' : 3, 'col' : 6, 'coladd' : 0}], 2], - \ getchangelist(bufnr('%'))) + \ getchangelist('%')) hide enew call assert_equal([[ |