]> code.delx.au - gnu-emacs/blobdiff - lisp/ibuffer.el
ibuffer: Fix issue with ERC scroll-to-bottom (Bug #858).
[gnu-emacs] / lisp / ibuffer.el
index 539f88ec3c1da21619a134c219589eb7c1d74912..262f2ad73ab0eec8b972abe4c22c40eb47141de9 100644 (file)
@@ -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)))))))