Function: majutsu-row-tail-align-to-width

majutsu-row-tail-align-to-width is a natively compiled function defined in majutsu-row.el.

Signature

(majutsu-row-tail-align-to-width WIDTH &optional WINDOW)

Documentation

Return a display target that right-aligns content of WIDTH.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-row.el
(defun majutsu-row-tail-align-to-width (width &optional window)
  "Return a display target that right-aligns content of WIDTH."
  (cond
   ((and (display-graphic-p) window)
    (list (max 0 (- (window-body-width window t) width))))
   ((display-graphic-p)
    `(- right (,width)))
   (window
    (max 0 (- (window-body-width window)
              width
              majutsu-row--tail-terminal-padding)))
   (t
    `(- right ,(+ width majutsu-row--tail-terminal-padding)))))