Function: magit-diff-hunk-column

magit-diff-hunk-column is a byte-compiled function defined in magit-diff.el.

Signature

(magit-diff-hunk-column SECTION GOTO-FROM)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defun magit-diff-hunk-column (section goto-from)
  (if (or (< (magit-point)
             (oref section content))
          (and (not goto-from)
               (= (char-after (line-beginning-position)) ?-)))
      0
    (max 0 (- (+ (current-column) 2)
              (length (oref section value))))))