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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user