]> git.eshelyaron.com Git - emacs.git/commit
src/textprop.c (get_char_property_and_overlay): Fix bug#58479
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 14 Oct 2022 20:28:33 +0000 (16:28 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 14 Oct 2022 20:28:33 +0000 (16:28 -0400)
commitb86505387480fed81629cbc81cef6b70098bd607
treed7a8587f015342399859f75a81da3873c3807272
parent65a7b5a802a15daa6274403fef822ec3c9b95469
src/textprop.c (get_char_property_and_overlay): Fix bug#58479

Correct `get-char-property` which failed to ignore empty overlays.

* src/textprop.c (get_char_property_and_overlay): Make sure the
overlay covers the character.
* test/src/buffer-tests.el (buffer-tests--overlay-bug58479): New test.
* src/buffer.h (buffer_has_overlays): Avoid `interval_tree_size`.
src/buffer.h
src/textprop.c
test/src/buffer-tests.el