aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/electric.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/electric.el b/lisp/electric.el
index 60a551291a7..289b6ecd147 100644
--- a/lisp/electric.el
+++ b/lisp/electric.el
@@ -153,8 +153,10 @@
153 (setq win (selected-window))) 153 (setq win (selected-window)))
154 (t 154 (t
155 (switch-to-buffer buf))) 155 (switch-to-buffer buf)))
156 (fit-window-to-buffer win max-height) 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))
159 (fit-window-to-buffer win max-height))
158 win))) 160 win)))
159 161
160(provide 'electric) 162(provide 'electric)