Skip to content

Commit

Permalink
Clamp font-lock-flush positions; fixes #674
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Nov 10, 2023
1 parent 51535ef commit 24d59b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion racket-hash-lang.el
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ lang's attributes that we care about have changed."
All we do here is mark the span as not fontified, then let
jit-lock do its thing if/when this span ever becomes visible."
;;;(message "racket--hash-lang-on-changed-tokens %s %s %s" _gen beg end)
(font-lock-flush beg end))
(save-restriction
(widen)
(font-lock-flush (max beg (point-min))
(min end (point-max)))))

;;; Fontification

Expand Down

0 comments on commit 24d59b1

Please sign in to comment.