diff options
author | Liad Oz <liadozil@gmail.com> | 2022-12-07 19:07:56 +0200 |
---|---|---|
committer | Liad Oz <liadozil@gmail.com> | 2023-01-14 20:11:03 +0200 |
commit | da70c394053e2110aedf5a8ea72cbaba0ccf06d9 (patch) | |
tree | 61442eaa2601dd49b14db9675669028def8b1d8b /test/functional/api/extmark_spec.lua | |
parent | 8b86cb8f5b26699ead075cb6660c9236dfb5c495 (diff) | |
download | rneovim-da70c394053e2110aedf5a8ea72cbaba0ccf06d9.tar.gz rneovim-da70c394053e2110aedf5a8ea72cbaba0ccf06d9.tar.bz2 rneovim-da70c394053e2110aedf5a8ea72cbaba0ccf06d9.zip |
fix(extmarks): adjust extmarks when inserting prompt prefix
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 00f5b25b8a..9902826c72 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -1454,6 +1454,14 @@ describe('API/extmarks', function() }} }, get_extmarks(ns, 0, -1, {details=true})) end) + it('in prompt buffer', function() + feed('dd') + local id = set_extmark(ns, marks[1], 0, 0, {}) + curbufmeths.set_option('buftype', 'prompt') + feed('i<esc>') + eq({{id, 0, 2}}, get_extmarks(ns, 0, -1)) + end) + it('can get details', function() set_extmark(ns, marks[1], 0, 0, { end_col = 0, |