changeset 98561:bac33d669abf

ibuffer: Fix issue with ERC scroll-to-bottom (Bug #858).
author Michael Olson <mwolson@gnu.org>
date Wed, 08 Oct 2008 05:02:09 +0000
parents 7a2a452a3e7d
children afd11810f64b
files lisp/ibuffer.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)))))))