Function: dirvish--display-buffer
dirvish--display-buffer is a natively compiled function defined in
dirvish.el.
Signature
(dirvish--display-buffer BUFFER ALIST)
Documentation
Try displaying BUFFER with ALIST.
This splits the window at the designated side of the frame.
ALIST is window arguments passed to window--display-buffer.
Source Code
;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
(defun dirvish--display-buffer (buffer alist)
"Try displaying BUFFER with ALIST.
This splits the window at the designated side of the frame.
ALIST is window arguments passed to `window--display-buffer'."
(let* ((side (cdr (assq 'side alist)))
(window-configuration-change-hook nil)
(width (or (cdr (assq 'window-width alist)) 0.5))
(height (cdr (assq 'window-height alist)))
(size (or height (ceiling (* (frame-width) width))))
(split-width-threshold 0)
(ignore-window-parameters t)
(new-window (split-window-no-error nil size side)))
(window--display-buffer buffer new-window 'window alist)))