Function: magit-set-window-margins

magit-set-window-margins is a byte-compiled function defined in magit-margin.el.

Signature

(magit-set-window-margins &optional WINDOW)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-margin.el
(defun magit-set-window-margins (&optional window)
  (when (or window (setq window (get-buffer-window)))
    (with-selected-window window
      (set-window-margins
       nil
       (if (characterp (car (magit-section-visibility-indicator)))
           1
         (car (window-margins)))
       (and (magit--right-margin-active)
            (nth 2 magit--right-margin-config))))))