]> git.eshelyaron.com Git - emacs.git/commit
Eglot: fix edge case when deleting inlay hint overlays
authorJoão Távora <joaotavora@gmail.com>
Thu, 27 Apr 2023 19:51:07 +0000 (20:51 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 27 Apr 2023 23:39:08 +0000 (00:39 +0100)
commit941ef044f2e0607bcaa537fbb56790a512c38782
treed37cfa638670f34af66345a65cb95613203ed2c3
parenta365984d9e167c4d71a2a44a1abb4710765f460f
Eglot: fix edge case when deleting inlay hint overlays

When asked to update hints in a region (FROM TO),
eglot--update-hints-1 first deletes the existing hints.  It must
however take care to delete all overlays that logically belong to the
region, even if they don't physically belong to it, e.g. inlay
overlays spanning (FROM-1 FROM) and having a 'after-string' property.

* lisp/progmodes/eglot.el (eglot--update-hints-1): Fix edge case.
lisp/progmodes/eglot.el