fix(dired): require needed for `dirvish-side'

This prevents getting load errors when calling the command
`+dired/dirvish-side-and-follow' before `dirvish' has been
loaded.
This commit is contained in:
Sau P 2024-09-12 14:12:27 +01:00 committed by Henrik Lissner
parent 9359a81e81
commit 73460f42fd

View file

@ -22,6 +22,7 @@ If dirvish is already open, remotely jump to the file in Dirvish.
If given the prefix ARG, then prompt for a directory (replaces existing Dirvish
sidebars)."
(interactive "P")
(require 'dirvish-side)
(save-selected-window
(let ((win (dirvish-side--session-visible-p)))
(when (and win arg)