Skip to content

Commit

Permalink
fix: Ensure extend to next line
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 6, 2024
1 parent 8d05bd0 commit d40eb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goto-char-preview.el
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
(defun goto-char-preview--highlight ()
"Keep highlight for a fixed time."
(when goto-char-preview-hl-duration
(let ((overlay (make-overlay (line-beginning-position) (line-end-position))))
(let ((overlay (make-overlay (line-beginning-position) (1+ (line-end-position)))))
(overlay-put overlay 'face 'goto-char-preview-hl)
(overlay-put overlay 'window (selected-window))
(sit-for goto-char-preview-hl-duration)
Expand Down

0 comments on commit d40eb8c

Please sign in to comment.