diff options
| -rw-r--r-- | lisp/electric.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/electric.el b/lisp/electric.el index 289b6ecd147..857f7fab9de 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -155,7 +155,7 @@ | |||
| 155 | (switch-to-buffer buf))) | 155 | (switch-to-buffer buf))) |
| 156 | ;; Don't shrink the window, but expand it if necessary. | 156 | ;; Don't shrink the window, but expand it if necessary. |
| 157 | (goto-char (point-min)) | 157 | (goto-char (point-min)) |
| 158 | (unless (= (point-max) (window-end win)) | 158 | (unless (= (point-max) (window-end win t)) |
| 159 | (fit-window-to-buffer win max-height)) | 159 | (fit-window-to-buffer win max-height)) |
| 160 | win))) | 160 | win))) |
| 161 | 161 | ||