Function: magit-diff-highlight-hunk-region-using-overlays

magit-diff-highlight-hunk-region-using-overlays is a byte-compiled function defined in magit-diff.el.

Signature

(magit-diff-highlight-hunk-region-using-overlays SECTION)

Documentation

Emphasize the hunk-internal region using delimiting horizontal lines.

This is implemented as single-pixel newlines places inside overlays.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defun magit-diff-highlight-hunk-region-using-overlays (section)
  "Emphasize the hunk-internal region using delimiting horizontal lines.
This is implemented as single-pixel newlines places inside overlays."
  (if (window-system)
      (let ((beg (magit-diff-hunk-region-beginning))
            (end (magit-diff-hunk-region-end))
            (str (propertize
                  (concat (propertize "\s" 'display '(space :height (1)))
                          (propertize "\n" 'line-height t))
                  'font-lock-face 'magit-diff-lines-boundary)))
        (magit-diff--make-hunk-overlay beg (1+ beg) 'before-string str)
        (magit-diff--make-hunk-overlay end (1+ end) 'after-string  str))
    (magit-diff-highlight-hunk-region-using-face section)))