# HG changeset patch # User Michael Olson # Date 1223442129 0 # Node ID bac33d669abfe0273c22f88e873a3f4168d873f3 # Parent 7a2a452a3e7da3e5b59b662b9f4b27217215b445 ibuffer: Fix issue with ERC scroll-to-bottom (Bug #858). diff -r 7a2a452a3e7d -r bac33d669abf lisp/ibuffer.el --- a/lisp/ibuffer.el Wed Oct 08 04:05:10 2008 +0000 +++ b/lisp/ibuffer.el Wed Oct 08 05:02:09 2008 +0000 @@ -1153,6 +1153,9 @@ (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)))))))