Skip to content

Commit

Permalink
mu4e-mark: handle case when mark line cannot fit
Browse files Browse the repository at this point in the history
ht: @kpzart.

Fixes #2782.
  • Loading branch information
djcb committed Nov 10, 2024
1 parent b0d8d42 commit 7e798f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mu4e/mu4e-mark.el
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ The following marks are available, and the corresponding props:
;; the docid cookie and then we skip the mu4e--mark-fringe
(start (+ (length mu4e--mark-fringe)
(mu4e~headers-goto-docid docid t)))
(overlay (make-overlay start (+ start (length targetstr)))))
(overlay (make-overlay start (min (line-end-position)
(+ start (length targetstr))))))
(overlay-put overlay 'display targetstr)
(overlay-put overlay 'mu4e-mark t)
(overlay-put overlay 'evaporate t)
Expand Down

0 comments on commit 7e798f5

Please sign in to comment.