branch: externals/dired-preview
commit 521780b1ba72fc76709a0aa1969fabeceba4e98f
Merge: 1df5566955 0fc8834682
Author: Protesilaos Stavrou <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #11 from juergenhoetzel/split-width-threshold
    
    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))

Reply via email to