Skip to content

Commit 9e9751c

Browse files
committed
Call global-hl-line-unhighlight to remove existing overlay
Setting global-hl-line-mode to nil prevents future highlights, but doesn't remove any existing overlay. Call global-hl-line-unhighlight to ensure the overlay is removed when the buffer is configured.
1 parent 760240d commit 9e9751c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

claude-code-ide.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ cursor management, and process buffering for superior user experience."
398398
;; disable hl-line-mode, eliminates another source of flicker
399399
(setq-local global-hl-line-mode nil)
400400
(when (featurep 'hl-line)
401-
(hl-line-mode -1))
401+
(hl-line-mode -1)
402+
(global-hl-line-unhighlight))
402403
;; make sure the non-breaking space in the prompt isn't themed
403404
(face-remap-add-relative 'nobreak-space :underline nil :foreground nil)
404405
;; Register hook for copy-mode cursor visibility

0 commit comments

Comments
 (0)