1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

Eglot: fix bug in eglot--semtok-font-lock

The entry condition to eglot--semtok-font-lock-1, which checks
if the region to refontify is contained in the recorded region
in eglot--semtok-cache was blatantly wrong.  It used 'beg'
twice!

* lisp/progmodes/eglot.el (eglot--semtok-font-lock): Fix bug.
This commit is contained in:
João Távora 2025-11-14 22:29:34 +00:00
parent f83c35788a
commit f772fe526a

View file

@ -4738,7 +4738,7 @@ lock machinery calls us again."
(cond ((and (eq (plist-get eglot--semtok-cache :documentVersion)
eglot--versioned-identifier)
(and (<= (plist-get eglot--semtok-cache :from) beg)
(<= beg (plist-get eglot--semtok-cache :to))))
(<= end (plist-get eglot--semtok-cache :to))))
(eglot--semtok-font-lock-1 beg end))
(t
(eglot--semtok-font-lock-2 beg end)