branch: externals/dired-preview
commit 0fc88346829bf10c0fe7cf62e00b79d01f7263a3
Author: Juergen Hoetzel <[email protected]>
Commit: Juergen Hoetzel <[email protected]>
Split Width Threshold: Handle nil value
---
dired-preview.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dired-preview.el b/dired-preview.el
index 730c08dadd..5171ccb790 100644
--- a/dired-preview.el
+++ b/dired-preview.el
@@ -322,7 +322,8 @@ checked against `split-width-threshold' or
(defun dired-preview-display-action-side ()
"Pick a side window that is appropriate for the given frame."
- (if-let ((width (window-body-width))
+ (if-let (split-width-threshold
+ (width (window-body-width))
((>= width (window-body-height)))
((>= width split-width-threshold)))
`(:side right :dimension window-width :size
,(dired-preview-get-window-size :width))