diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-12-06 11:13:58 +0100 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-12-06 11:57:07 +0100 |
commit | c4f76299f0398f8a9b42bb7c1a5fad3205680298 (patch) | |
tree | b8c0698a3c6f30f5e4179d5b06282e6b581e303d /test/functional/api/buffer_spec.lua | |
parent | 812d02970206d5a65819e076bcddedd92e083a19 (diff) | |
download | rneovim-c4f76299f0398f8a9b42bb7c1a5fad3205680298.tar.gz rneovim-c4f76299f0398f8a9b42bb7c1a5fad3205680298.tar.bz2 rneovim-c4f76299f0398f8a9b42bb7c1a5fad3205680298.zip |
fix(marks): skip right_gravity marks when deleting text
Problem: Marks that are properly restored by the splice associated with
an undo edit, are unnecessarily pushed to the undo header. This
results in incorrect mark tracking in the "copy_only"
save/restore completion path.
Solution: Avoid pushing left gravity marks at the beginning of the range,
and right gravity marks at the end of the range to the undo
header.
Diffstat (limited to 'test/functional/api/buffer_spec.lua')
0 files changed, 0 insertions, 0 deletions