Function: majutsu-annotate-show-or-scroll-up

majutsu-annotate-show-or-scroll-up is an interactive and natively compiled function defined in majutsu-annotate.el.

Signature

(majutsu-annotate-show-or-scroll-up)

Documentation

Show the commit at point or scroll up if already showing.

Key Bindings

majutsu-annotate-read-only-mode-map SPC

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-annotate.el
(defun majutsu-annotate-show-or-scroll-up ()
  "Show the commit at point or scroll up if already showing."
  (interactive)
  (let* ((chunk (majutsu-annotate-current-chunk))
         (change-id (majutsu-annotate-chunk-orig-rev chunk)))
    (if-let* ((win (get-buffer-window
                    (format "*majutsu-diff: %s*" change-id))))
        (with-selected-window win
          (scroll-up))
      (majutsu-annotate-show-commit))))