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

magit-diff-on-removed-line-p is a natively 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 /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)) ?-))))