X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/26e06f4464c58704889bdc536edc25b73e8c0179..5412419465dbb3e12d0841ab15875fa34ca6f336:/lisp/ibuffer.el diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 539f88ec3c..262f2ad73a 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)))))))