branch: externals/dired-preview commit 6bdcc34f68a9a58113458c089a1838fcc219cb6a Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Use "below" instead of "bottom" for direction We want to show the preview below its Dired buffer, not at the bottom of the frame. The latter is more confusing, such as when we have three windows side-by-side and the preview appears in a fourth window that cuts all three on the horizontal axis. --- dired-preview.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dired-preview.el b/dired-preview.el index 4183080a14..303fbcc84b 100644 --- a/dired-preview.el +++ b/dired-preview.el @@ -190,7 +190,7 @@ checked against `split-width-threshold' or ((>= width (window-body-height))) ((>= width split-width-threshold))) `(:side right :dimension window-width :size ,(dired-preview-return-window-size :width)) - `(:side bottom :dimension window-height :size ,(dired-preview-return-window-size :height)))) + `(:side below :dimension window-height :size ,(dired-preview-return-window-size :height)))) (defun dired-preview-display-action-alist-dwim () "Reference function for `dired-preview-display-action-alist-function'.