diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-08 14:14:15 +0200 |
---|---|---|
committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-17 21:23:52 +0200 |
commit | cecc45efb16cc30b40d4c481e6ef345614c96404 (patch) | |
tree | a28170094f69a841392b47f7e0fc2df73d4fe723 /test/functional/api/extmark_spec.lua | |
parent | d4b4335fe330bf0558d38883cb8a2b47e8ece28a (diff) | |
download | rneovim-cecc45efb16cc30b40d4c481e6ef345614c96404.tar.gz rneovim-cecc45efb16cc30b40d4c481e6ef345614c96404.tar.bz2 rneovim-cecc45efb16cc30b40d4c481e6ef345614c96404.zip |
api(extmarks): allow extrange past final newline
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index a2a188d036..ab913ba4a4 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -100,6 +100,15 @@ describe('API/extmarks', function() ns2 = request('nvim_create_namespace', "my-fancy-plugin2") end) + it("can end extranges past final newline using end_col = 0", function() + set_extmark(ns, marks[1], 0, 0, { + end_col = 0, + end_line = 1 + }) + eq("end_col value outside range", + pcall_err(set_extmark, ns, marks[2], 0, 0, { end_col = 1, end_line = 1 })) + end) + it('adds, updates and deletes marks', function() local rv = set_extmark(ns, marks[1], positions[1][1], positions[1][2]) eq(marks[1], rv) |