Function: magit-diff-on-removed-line-p

magit-diff-on-removed-line-p is a byte-compiled function defined in magit-diff.el.

Signature

(magit-diff-on-removed-line-p)

Documentation

Return t if point is on a removed line inside the body of a hunk.

If magit-diff-visit-previous-blob is nil, then always return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defun magit-diff-on-removed-line-p ()
  "Return t if point is on a removed line inside the body of a hunk.
If `magit-diff-visit-previous-blob' is nil, then always return nil."
  (let ((section (magit-current-section)))
    (and magit-diff-visit-previous-blob
         (cl-typep section 'magit-hunk-section)
         (not (oref section combined))
         (= (char-after (pos-bol)) ?-))))