joaotavora / eglot

A client for Language Server Protocol servers
GNU General Public License v3.0
2.25k stars 200 forks source link

Avoid message-spamming when jit-lock-context-unfontify-pos nil #1370

Open unhammer opened 7 months ago

unhammer commented 7 months ago

In js-mode, I get an error with the message

  (jit-lock--run-functions 3698 3699) [UNPR HOST api.js]: Wrong type argument: number-or-marker-p, nil

for almost every edit. The nil-check in this patch fixes it. The variable is by default nil and docs say it can be nil if contextual fontification is disabled.