From 5412419465dbb3e12d0841ab15875fa34ca6f336 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Wed, 8 Oct 2008 05:03:43 +0000 Subject: ibuffer: Fix issue with ERC scroll-to-bottom (Bug #858). --- lisp/ibuffer.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lisp/ibuffer.el') 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))))))) -- cgit v1.2.1