Function: eca-chat--paint-nested-label
eca-chat--paint-nested-label is a natively compiled function defined
in eca-chat-expandable.el.
Signature
(eca-chat--paint-nested-label OV-LABEL)
Documentation
Paint OV-LABEL's `line-prefix with the parent blocks background face.
Does nothing for top-level blocks or when parent has no face set.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-expandable.el
(defun eca-chat--paint-nested-label (ov-label)
"Paint OV-LABEL's `line-prefix` with the parent block's background face.
Does nothing for top-level blocks or when parent has no face set."
(when (overlay-get ov-label 'eca-chat--expandable-content-nested)
(when-let* ((parent-id (overlay-get ov-label 'eca-chat--expandable-content-parent-id))
(parent-ov (eca-chat--get-expandable-content parent-id))
(parent-content-ov (overlay-get parent-ov 'eca-chat--expandable-content-ov-content))
(parent-face (overlay-get parent-content-ov 'face)))
(save-excursion
(goto-char (overlay-start ov-label))
(eca-chat--apply-face-to-line-prefixes (point) (line-end-position) parent-face)))))