summaryrefslogtreecommitdiff
path: root/lisp/ibuffer.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2008-10-08 05:03:43 +0000
committerMichael Olson <mwolson@gnu.org>2008-10-08 05:03:43 +0000
commit5412419465dbb3e12d0841ab15875fa34ca6f336 (patch)
treed1a2dfc81d2475ff2fb015c6d4fec5f2676e6baa /lisp/ibuffer.el
parent1c86baa408007e4ab3774ebdb53e620eacb7a4c1 (diff)
downloademacs-5412419465dbb3e12d0841ab15875fa34ca6f336.tar.gz
ibuffer: Fix issue with ERC scroll-to-bottom (Bug #858).
Diffstat (limited to 'lisp/ibuffer.el')
-rw-r--r--lisp/ibuffer.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 539f88ec3c1..262f2ad73ab 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -1153,6 +1153,9 @@ a new window in the current frame, splitting vertically."
(ibuffer-redisplay t)))
(defun ibuffer-shrink-to-fit (&optional owin)
+ ;; Make sure that redisplay is performed, otherwise there can be a
+ ;; bad interaction with code in the window-scroll-functions hook
+ (redisplay t)
(fit-window-to-buffer nil (when owin (/ (frame-height)
(length (window-list (selected-frame)))))))