Function: magit-blame--update-heading-overlay

magit-blame--update-heading-overlay is a natively compiled function defined in magit-blame.el.

Signature

(magit-blame--update-heading-overlay OV)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-blame.el
(defun magit-blame--update-heading-overlay (ov)
  (overlay-put
   ov 'before-string
   (if-let ((format (magit-blame--style-get 'heading-format)))
       ;; Use `default' as the last face to avoid picking up any face
       ;; attributes from the first character of the text on which we
       ;; put the overlay.  See #5233.
       (magit-blame--format-string ov format '(magit-blame-heading default))
     (and (magit-blame--style-get 'show-lines)
          (or (not (magit-blame--style-get 'margin-format))
              (save-excursion
                (goto-char (overlay-start ov))
                ;; Special case of the special case described in
                ;; `magit-blame--make-margin-overlay'.  For empty
                ;; lines it is not possible to show both overlays
                ;; without the line being too high.
                (not (= (point) (line-end-position)))))
          magit-blame-separator))))