summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2008-12-11 17:20:45 +0000
committerMartin Rudalics <rudalics@gmx.at>2008-12-11 17:20:45 +0000
commit4d0e7fe37b6b109cb0f93ea00b0a243289d99cb5 (patch)
treef719b3934b9c18b01683071d7680e725b6ed7827 /lisp/dired.el
parentf7baca2087406d3d45d2662a8b3fca43f938d537 (diff)
downloademacs-4d0e7fe37b6b109cb0f93ea00b0a243289d99cb5.tar.gz
(dired-pop-to-buffer): Call with min-height arg 1 to
make sure that small buffers get shown.
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 5d0db7ecc1d..e0e72a1847e 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -2681,7 +2681,9 @@ name, or the marker and a count of marked files."
(pop-to-buffer (get-buffer-create buf))
;; If dired-shrink-to-fit is t, make its window fit its contents.
(when dired-shrink-to-fit
- (fit-window-to-buffer (get-buffer-window buf))))
+ ;; Try to not delete window when we want to display less than
+ ;; `window-min-height' lines.
+ (fit-window-to-buffer (get-buffer-window buf) nil 1)))
(defcustom dired-no-confirm nil
"A list of symbols for commands Dired should not confirm.