Mercurial > emacs
changeset 78462:49b138bd37ef
Use window-full-width-p instead of comparing frame-width and
window-width.
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Wed, 08 Aug 2007 05:46:49 +0000 |
parents | 90683ffc924a |
children | ad7b04a38ce4 |
files | lisp/dired.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)