branch: elpa/dirvish
commit 77299abeeb5f518671d71447d1d061edeaf9537b
Author: Alex Lu <hellosimon1...@hotmail.com>
Commit: Alex Lu <hellosimon1...@hotmail.com>

    refactor(core): support `*other-window` commands in fullframe state
---
 dirvish.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dirvish.el b/dirvish.el
index 922cca02c5..2a006d8dc1 100644
--- a/dirvish.el
+++ b/dirvish.el
@@ -587,8 +587,8 @@ filename or a string with format of `dirvish-fd-bufname'."
                    (apply #'start-process "" nil "nohup" (append (list c) 
a))))))
     ;; forward requests from `find-dired'
     (unless dv (cl-return-from dirvish--find-entry (funcall find-fn entry)))
-    (when (and (dv-curr-layout dv) (eq find-fn 'find-file-other-window))
-      (user-error "Can not find a suitable other-window here"))
+    (and (dv-curr-layout dv) (eq find-fn 'find-file-other-window)
+         (dirvish-layout-toggle))
     (when (and directory? (eq find-fn 'find-alternate-file))
       (setq buf (current-buffer)) ; delay the killing, for its session info
       (dirvish-save-dedication (find-file entry))

Reply via email to