From f772fe526a6dd6726f2759e3d00b2a582fd045e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 14 Nov 2025 22:29:34 +0000 Subject: [PATCH] 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. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index d5a4ca096f3..2b901ed7875 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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)