diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-01-15 08:37:44 -0800 |
---|---|---|
committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-01-15 08:37:44 -0800 |
commit | facd07bcf76b3c0b41eb046fce6b9d5bad62b89e (patch) | |
tree | 51da3c70736141ef4f88958001cbc5eef7c4177b /test/functional/api/extmark_spec.lua | |
parent | 2fd8330628e007704c28043089a47ec75093bcb8 (diff) | |
download | rneovim-facd07bcf76b3c0b41eb046fce6b9d5bad62b89e.tar.gz rneovim-facd07bcf76b3c0b41eb046fce6b9d5bad62b89e.tar.bz2 rneovim-facd07bcf76b3c0b41eb046fce6b9d5bad62b89e.zip |
Address review r3
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index a8f538b951..e147e54bf5 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -110,6 +110,22 @@ describe('API/extmarks', function() pcall_err(set_extmark, ns, marks[2], 0, 0, { end_col = 1, end_row = 1 })) end) + it("can end extranges past final newline when strict mode is false", function() + set_extmark(ns, marks[1], 0, 0, { + end_col = 1, + end_row = 1, + strict = false + }) + end) + + it("can end extranges past final column when strict mode is false", function() + set_extmark(ns, marks[1], 0, 0, { + end_col = 1, + end_row = 6, + strict = false + }) + 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) |