aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-11-14 20:06:13 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-11-23 16:46:47 +0100
commit2cc83c961c0533222890adec51ac56041fb2a6b4 (patch)
tree2dd13a07c8e230820281332b100b0eaac9037ad3 /test
parentbdebe8516c90839930acbfe3c6f1e354ee56df3f (diff)
downloadrneovim-2cc83c961c0533222890adec51ac56041fb2a6b4.tar.gz
rneovim-2cc83c961c0533222890adec51ac56041fb2a6b4.tar.bz2
rneovim-2cc83c961c0533222890adec51ac56041fb2a6b4.zip
refactor: use inserted_bytes pattern from vim
This covers all "small" inserts and deletes in insert mode, as well as a few more cases like small normal mode deletes vim-patch:8.1.0678: text properties as not adjusted for inserted text
Diffstat (limited to 'test')
-rw-r--r--test/functional/api/mark_extended_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/api/mark_extended_spec.lua b/test/functional/api/mark_extended_spec.lua
index 76db9f9d81..04b2b3bcc5 100644
--- a/test/functional/api/mark_extended_spec.lua
+++ b/test/functional/api/mark_extended_spec.lua
@@ -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)