Function: dirvish-pre-redisplay-h

dirvish-pre-redisplay-h is a natively compiled function defined in dirvish.el.

Signature

(dirvish-pre-redisplay-h WINDOW)

Documentation

Record root WINDOW and redisplay sessions in selected frame.

Only act when WINDOW is the selected window in its frame to prevent a redisplay feedback loop when dirvish is open in multiple frames.

Source Code

;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
(defun dirvish-pre-redisplay-h (window)
  "Record root WINDOW and redisplay sessions in selected frame.
Only act when WINDOW is the selected window in its frame to prevent
a redisplay feedback loop when dirvish is open in multiple frames."
  (when (eq (frame-selected-window) window)
    (setq dirvish--selected-window window)
    (when-let* ((dv (dirvish-curr))) (setf (dv-root-window dv) window))
    (dirvish--redisplay)))