# HG changeset patch # User Martin Rudalics # Date 1186552009 0 # Node ID 49b138bd37ef33868c1f07455d1f58256cfc8b33 # Parent 90683ffc924a43f26a6d0c3a7158e755c45095d8 Use window-full-width-p instead of comparing frame-width and window-width. diff -r 90683ffc924a -r 49b138bd37ef lisp/dired.el --- a/lisp/dired.el Tue Aug 07 20:21:42 2007 +0000 +++ b/lisp/dired.el Wed Aug 08 05:46:49 2007 +0000 @@ -2547,12 +2547,12 @@ (cond ;; if split-height-threshold is enabled, use the largest window ((and (> (window-height (setq w2 (get-largest-window))) split-height-threshold) - (= (frame-width) (window-width w2))) + (window-full-width-p w2)) (setq window w2)) ;; if the least-recently-used window is big enough, use it ((and (> (window-height (setq w2 (get-lru-window))) (* 2 window-min-height)) - (= (frame-width) (window-width w2))) + (window-full-width-p w2)) (setq window w2))) (save-excursion (set-buffer buf)