Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Width Threshold: Handle nil value #11

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

juergenhoetzel
Copy link
Contributor

@juergenhoetzel juergenhoetzel commented Apr 13, 2024

Fixes

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  >=(238 nil)
  (and s (>= width split-width-threshold))
  (let* ((width (and t (window-body-width))) (s (and width (>= width (window-body-height)))) (s (and s (>= width split-width-threshold)))) (if s (list ':side 'right ':dimension 'window-width ':size (dired-preview-get-window-size :width)) (list ':side 'bottom ':dimension 'window-height ':size (dired-preview-get-window-size :height))))
  dired-preview-display-action-side()

I disabled horizontal splitting on my Emacs setup via

(custom-set-variables
 '(split-width-threshold nil))

@protesilaos protesilaos merged commit 521780b into protesilaos:main Apr 13, 2024
@protesilaos
Copy link
Owner

Merged. Thank you!

protesilaos added a commit that referenced this pull request Apr 13, 2024
This was done in pull request 11: <#11>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants