diff options
| author | Lars Ingebrigtsen | 2021-06-02 10:54:37 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-06-02 10:54:37 +0200 |
| commit | f064b23d09a354d7b99bc6eebb4be64979a3ba9f (patch) | |
| tree | 441248d1e8b97fff1203855f4e16425640bb4900 | |
| parent | 7ea7e26ab1976b7534f7c573107adfa74defee22 (diff) | |
| download | emacs-f064b23d09a354d7b99bc6eebb4be64979a3ba9f.tar.gz emacs-f064b23d09a354d7b99bc6eebb4be64979a3ba9f.zip | |
Fix ibuffer auto-shrinking windows
* lisp/ibuffer.el (ibuffer-shrink-to-fit): Don't shrink all
windows, just the ibuffer one (bug#7218).
| -rw-r--r-- | lisp/ibuffer.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index c80222ed0f4..9088f31053b 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el | |||
| @@ -1079,8 +1079,11 @@ a new window in the current frame, splitting vertically." | |||
| 1079 | ;; Make sure that redisplay is performed, otherwise there can be a | 1079 | ;; Make sure that redisplay is performed, otherwise there can be a |
| 1080 | ;; bad interaction with code in the window-scroll-functions hook | 1080 | ;; bad interaction with code in the window-scroll-functions hook |
| 1081 | (redisplay t) | 1081 | (redisplay t) |
| 1082 | (fit-window-to-buffer nil (when owin (/ (frame-height) | 1082 | (when (buffer-local-value 'ibuffer-auto-mode (window-buffer)) |
| 1083 | (length (window-list (selected-frame))))))) | 1083 | (fit-window-to-buffer |
| 1084 | nil (and owin | ||
| 1085 | (/ (frame-height) | ||
| 1086 | (length (window-list (selected-frame)))))))) | ||
| 1084 | 1087 | ||
| 1085 | (defun ibuffer-confirm-operation-on (operation names) | 1088 | (defun ibuffer-confirm-operation-on (operation names) |
| 1086 | "Display a buffer asking whether to perform OPERATION on NAMES." | 1089 | "Display a buffer asking whether to perform OPERATION on NAMES." |