diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-22 18:23:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-22 18:23:38 +0200 |
commit | e6e70a10f118ecfa9df2425e8724bc009bd09929 (patch) | |
tree | 6c52ba48eb706339ab8e1d09d5bde94a4206e0ef /src/testdir/test_vim9_builtin.vim | |
parent | 15ab48f088842de512ca5f13aa39a4dc7cac8477 (diff) |
patch 8.2.1888: Vim9: getbufline(-1, 1, '$') gives an errorv8.2.1888
Problem: Vim9: Getbufline(-1, 1, '$') gives an error.
Solution: Return an empty list. (closes #7180)
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index e3d7bb628d..d6891a81b3 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -242,6 +242,8 @@ def Test_getbufline() var lines = ['aaa', 'bbb', 'ccc'] setbufline(buf, 1, lines) getbufline('#', 1, '$')->assert_equal(lines) + getbufline(-1, '$', '$')->assert_equal([]) + getbufline(-1, 1, '$')->assert_equal([]) bwipe! enddef |