]> git.eshelyaron.com Git - emacs.git/commit
src/buffer.c: Fix interaction between overlays & indirect buffers (bug#58928)
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 2 Nov 2022 01:38:55 +0000 (21:38 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 2 Nov 2022 01:39:12 +0000 (21:39 -0400)
commit8a5678906fa1b899c4d111e5ee4334b278f50d48
tree37a1266d9a21cdccb9dcf220e680c23f2576c7f2
parent835295381bdee3d517c7ee243a22640c78783a9f
src/buffer.c: Fix interaction between overlays & indirect buffers (bug#58928)

* src/buffer.c (adjust_overlays_for_insert)
(adjust_overlays_for_delete): Repeat for all buffers sharing the same text.

* src/itree.c (itree_insert_gap, itree_delete_gap): Allow an empty tree.

* test/src/buffer-tests.el (buffer-tests--overlays-indirect-bug58928):
New test.
src/buffer.c
src/itree.c
test/src/buffer-tests.el