diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-11-23 22:06:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-23 22:06:43 +0100 |
commit | 61d2a12743bcefbdd661b446b0b0fea7a1f77b17 (patch) | |
tree | 9b49db7bd3bc7163ad9b0a49828cea4b774f3e0d /test/functional/api/mark_extended_spec.lua | |
parent | d5f14b8372b3c8d441187eea659156534cb4c9ba (diff) | |
parent | 7d5988feeee275f0ae25e753dcb1d2e1954cd4ac (diff) | |
download | rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.tar.gz rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.tar.bz2 rneovim-61d2a12743bcefbdd661b446b0b0fea7a1f77b17.zip |
Merge pull request #11382 from bfredl/extmark_bufhl
use extmark adjustment for bufhl. use vim code for within-line adjustments.
Diffstat (limited to 'test/functional/api/mark_extended_spec.lua')
-rw-r--r-- | test/functional/api/mark_extended_spec.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/api/mark_extended_spec.lua b/test/functional/api/mark_extended_spec.lua index 76db9f9d81..1f6c00b7d2 100644 --- a/test/functional/api/mark_extended_spec.lua +++ b/test/functional/api/mark_extended_spec.lua @@ -422,7 +422,7 @@ describe('Extmarks buffer api', function() set_extmark(ns, marks[1], 1, 2) -- Insert a fullwidth (two col) tilde, NICE feed('0i~<esc>') - check_undo_redo(ns, marks[1], 1, 2, 1, 3) + check_undo_redo(ns, marks[1], 1, 2, 1, 5) end) it('marks move with blockwise inserts #extmarks', function() @@ -475,6 +475,13 @@ describe('Extmarks buffer api', function() check_undo_redo(ns, marks[2], 0, 3, 1, 2) end) + it('deleting right before a mark works #extmarks', function() + -- op_delete in ops.c + set_extmark(ns, marks[1], 0, 2) + feed('0lx') + check_undo_redo(ns, marks[1], 0, 2, 0, 1) + end) + it('deleting on a mark works #extmarks', function() -- op_delete in ops.c set_extmark(ns, marks[1], 0, 2) |