summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-09-05 20:58:27 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-09-05 20:58:27 +0200
commit1763cd4727a4ff38a9ea89e1d532017adff05c1e (patch)
tree697b44c8cd1b8c23011b5a9c1a473d66b0bbdc1a
parent6a2ee981c3a4a2f7e0864b0394ec47f6522847ee (diff)
downloademacs-1763cd4727a4ff38a9ea89e1d532017adff05c1e.tar.gz
Fit the re-builder window to the buffer
* lisp/emacs-lisp/re-builder.el (re-builder): Fit the height to the buffer (bug#56772).
-rw-r--r--lisp/emacs-lisp/re-builder.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el
index e6e8bb202da..897c35b5b19 100644
--- a/lisp/emacs-lisp/re-builder.el
+++ b/lisp/emacs-lisp/re-builder.el
@@ -369,7 +369,8 @@ provided in the Commentary section of this library."
(get-buffer-create reb-buffer)
`((display-buffer-in-direction)
(direction . ,dir)
- (dedicated . t))))))
+ (dedicated . t)
+ (window-height . fit-window-to-buffer))))))
(font-lock-mode 1)
(reb-initialize-buffer)))