Function: magit-diff-visit-file-other-window
magit-diff-visit-file-other-window is an interactive and natively
compiled function defined in magit-diff.el.
Signature
(magit-diff-visit-file-other-window)
Documentation
From a diff visit a version of the file at point in another window.
Like magit-diff-visit-file but always display in another window.
Key Bindings
magit-diff-section-base-map C-x 4 <return> magit-diff-section-map C-x 4 <return>
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-diff.el
(defun magit-diff-visit-file-other-window ()
"From a diff visit a version of the file at point in another window.
Like `magit-diff-visit-file' but always display in another window."
(interactive)
(magit-diff-visit-file--internal
(and magit-diff-visit-prefer-worktree
(memq (magit-diff--dwim) '(staged unstaged)))
#'switch-to-buffer-other-window))