Fix the last commit

This commit is contained in:
2025-10-08 19:41:19 -07:00
parent 18b804680d
commit 2367b15a9c

View File

@ -2208,8 +2208,8 @@ Note that this erases the buffer before doing anything."
,@body))
(defun my/-sly-fontify-current-input ()
"Function called from `post-command-hook' to fontify the current input."
(when-let ((deactivate-mark nil)
(proc (get-buffer-process (current-buffer)))
(let ((deactivate-mark nil))
(when-let ((proc (get-buffer-process (current-buffer)))
(start (process-mark proc))
(end (point-max))
(input (buffer-substring-no-properties start end))
@ -2229,7 +2229,7 @@ Note that this erases the buffer before doing anything."
(setf (plist-get props 'face) nil
(plist-get props 'font-lock-face) face))
(set-text-properties (+ start i) (+ start change-i) props)
(setq i change-i)))))
(setq i change-i))))))
(defun my/-sly-cleanup-fontification-buffer ()
(when (buffer-live-p my/-sly-fontification-buffer)
(kill-buffer my/-sly-fontification-buffer)))